Commit Graph

8009 Commits

Author SHA1 Message Date
Luigi Pulcini 63dd5eda6f
Added mechanism to customize data before AJAX requests in `meta-boxes-order.js` (#33563)
Added `triggerHandler` before each ajax request.

* Added namespace to event name
* Linting.

Co-authored-by: Luigi Pulcini <luigi@barn2.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-07-04 17:09:13 -07:00
Jorge A. Torres bddb6621ee
[COT] Implement order bulk actions (#33687)
Introduce `Admin\Orders\PageController` to manage admin pages for orders

* Change orders menu registration & initialization to use `Admin\Orders\PageController`
* Implement bulk actions in orders ListTable
* Unnecessary import
* Make PHPCS happy
* Add changelog
* Address feedback
2022-07-04 16:57:01 -07:00
Joel Thiessen 6c13fdf0ce
Making product image meta box more prominent as a default (#33707) 2022-07-04 11:55:18 -07:00
Chi-Hsuan Huang 4707dcbec0
Fix wrong copy in the payments settings for a country that WCPay is not supported (#33665)
* Fix wrong copy in payment recommendations

* Add changelog
2022-07-04 16:58:10 +08:00
Moon 76f9a1fc57
Fix export functionality on Analytic pages (#33709)
* Import correct controls

* Add changelog

* Add changelog
2022-07-04 12:55:39 +08:00
Moon 6a8f124022
Fix Uncaught DOMException on WooCommerce -> Extensions page. (#33711)
* Add .commerce to wrap selector

* Add changelog

* More specific selector

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-07-04 12:41:32 +08:00
Ilyas Foo dea22904e0
Fix marketing task completion logic (#33676)
* Add marketing action task on clicking Manage

* Revert marketing completion after installing any marketing plugin

* Changelog
2022-07-01 14:28:45 -07:00
Corey McKrill d15770132b
Revert "Update method for getting Reports API cache version number" (#33706)
This reverts commit bccc80366d.

When we merged this PR, we thought the Woo mobile apps would have enough time to implement some corresponding changes on their side. That turned out not to be the case. Without the ability to force a refresh of the analytics cache, this PR causes the apps to have a greater risk of showing users stale analytics data that they can’t immediately update.
2022-07-01 12:28:30 -07:00
Chi-Hsuan Huang f1ce6ec30c
Update WCPay to include a mention of in-person payments for Canada (#33669)
* Update wcpay to include a mention of in-person payments for Canada

* Add changelog
2022-07-01 13:51:54 +08:00
Moon f8e8b6ff04
Style fix for the print shipping banner close modal (#33587)
* Style fix for the close modal

* Add changelog
2022-06-30 14:05:00 -07:00
Matthew Hodge 6cb6fd02df
Added a filter to set fopen mode for streams that dont support a+ (#33652)
Added a filter to set fopen mode for streams that dont support a+

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2022-06-30 10:34:02 -07:00
AnnaMag 3fc11126a4
Include Tracks indicator property for block editor on product update. (#33321)
* Include Tracks property indicating block editor on product update.

* Add changelog

* In a block editor the Update button does not have the selector.

* Remove - from Tracks even property.

* Refine a condition of a non-empty object.

* Incorporate feedback: add callback for rendering the Update button.

* Add recent feedback- jQuery way of handling post render execution.

* Remove `console.log

* Fix `product_update` event recording

* Removed `hasRecordedEvent` and fixed `description validation

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-06-30 11:48:21 +02:00
Chi-Hsuan Huang 41ecb1ed6f
Fix wrong copy in the payments task on the Home Task list (#33663)
* Fix wrong copy in the payments task on the Home Task list

* Add changelog
2022-06-30 15:23:03 +08:00
Ilyas Foo d6ccaa67de
Shipping recommendation task set location step manual navigation (#33667)
* Adds capability for store location step to be manually navigated

* Add test

* Changelog
2022-06-30 14:45:52 +08:00
Chi-Hsuan Huang 2dc3d87e1c
Payment task: fix wrong copy in the accordion link (#33662)
* Fix wrong copy in the accordion link for payment task

* Add changelog
2022-06-30 12:20:23 +08:00
Tam Mullen def11b77d9
Update daily smoke test to add k6 smoke tests (#33658)
* Add k6 test scenario to the daily smoke test action.

* Add blank patch changelog for daily smoke update
2022-06-29 16:01:37 -06:00
Jorge A. Torres a80e0fe203
[COT] Implement create() method in COT datastore (#33341) 2022-06-29 08:54:29 -03:00
Moon feb3ab0581
Update shipping logic when OBW is skipped (#33630)
* Update shipping task fields when shipping smart default feature is enabled.

* Always display the shipping task regardless of having a physical product

* Updated text copy for the fields

* Do not display the step description if it is not the current step

* Added a banner for the shipping printing step

Remove description if the it is not the current step

* Add changelog

* Fix namespace conflict after the rebase

* Re-use wcs banner from the experimental shipping recommendation

* Delete ShippingLabelPrinting -- replaced by wcs banner from experimental-shipping-recommendation

* Add TOS link

* Remove ShippingPrintLabel styles -- no longer needed

* Minor refactor

* Move description set logic to getSteps()

* Use map to override step fields

* Remove unnecessary feature check

* Remove description in the map func

* Render ShipStation banner if plugins includes woocommerce-shipstation-integration
2022-06-29 00:40:42 -07:00
Chi-Hsuan Huang 88a66e6983
Update review shipping options task complete logic (#33650)
* Update review shipping options task complete logic

* Add changelog
2022-06-29 15:34:09 +08:00
Chi-Hsuan Huang 2e167ca088
Fix borken react admin commands (#33649)
* Fix admin build:packages and test:packages

* Add changelog
2022-06-29 13:02:56 +08:00
Ilyas Foo 1daa1c07fe
Add tests for shipping recommendation task (#33633)
* Move redirect function to utils to easily mock

* Add test

* Changelog
2022-06-29 11:24:25 +08:00
Christopher Allford 2e87b32034
Removed WooCommerce 6.7 Changelog Files (#33643)
Removed Changelog Files
2022-06-28 13:22:18 -07:00
jonathansadowski d48a0b2d90
Add helper tool for making sure build, lint, and test are run through Turborepo (#33573)
* Add helper tool for making sure build, lint, and test are run through Turborepo

* Update node version for require-turbo
2022-06-28 13:17:05 -05:00
Roy Ho 98cf4e7160
Add PR numbers to changelog entries on code freeze process (#33627)
* Add PR numbers to changelog entries on code freeze process

* Add markdown links to PR
2022-06-28 11:15:39 -07:00
Joshua T Flowers 0a5b912288
Move tracks _ui and _ut properties out of filtered tracks properties (#33621)
* Move tracks _ui and _ut properties out of filtered tracks properties

* Add tests around tracks properties

* Fix broken variable name

* Add changelog entry
2022-06-28 09:43:17 -04:00
Ilyas Foo b178e8a1f6
Add new flow shipping recommendation task (#33620)
* Plugins component skip button is now optional

* Add link from payment settings page

* Add new experimental shipping task flow

* Changelog

* Update plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/ExperimentalShippingRecommendation.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Rename all tracks to shipping_recommendation

* Add back skip installer bind

* Pass plugins list to pluginSlugs to be more predictable

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-28 13:53:03 +08:00
Moon e9006b56df
Add logic to set the default shipping options on homescreen (#33547)
* Add logic to set the default shipping options

* Set the flat rate cost to 15 (temp cost)

* Add changelog

* Update plugins/woocommerce/src/Internal/Admin/Homescreen.php

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Run the changes only if shipping-smart-defaults is enabled

* Assume user is going to sell physical products if obw is skipped or the store details has not been completed

* Make sure store country is set by an actual user by checking the value of woocommerce_store_addres

* Remove flat late logic

* Use woocommerce_store_address. store_address is always empty

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-06-27 20:23:13 -07:00
Chi-Hsuan Huang 5eea5ab072
Fix shipping display logic United Kingdom country code (#33629)
* Fix shipping display logic country code UK -> GB

* Add changelog
2022-06-28 11:15:01 +08:00
Roy Ho 14066bdeae
Add phpcs-changed (#33584)
* Add phpcs-changed

* Put report flag value in quotes

* Use phpcs action workflow instead

* Remove no longer used phpcs script

* Remove phpcs ignore rule

* Use proper name for code sniffer step
2022-06-27 11:46:29 -07:00
Pierre Carrier 10e1e62b8e
class-wc-geolocation.php: hide blog URL from third-party providers (#31941)
* includes/class-wc-geolocation.php: hide URL.
* Add changelog.
* Make phpcs happy.

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-24 17:34:29 -03:00
Dekadinious 2c721c7c88
Fixes issue #33335 (#33431)
* Fixes issue #33335

Check for an empty string instead of an empty variable.

* Update wc-product-functions.php

* Update wc-product-functions.php

* Changelog

* Fix cases when $term is false or empty array

Co-authored-by: Peter Fabian <peter.fabian.github@gmail.com>
2022-06-24 17:48:17 +02:00
RJ d2967e0ee8
Fixed missing wcpay setup task (#33590)
- task fill page was missing for the woocommerce-payments task
2022-06-24 17:06:43 +08:00
RJ 54b72dcae1
Fix: improve woocommerce-admin plugin deactivation notice message (#33592)
* Fix: improve wca deactivation notice message

* Update plugins/woocommerce/src/Internal/Admin/Loader.php

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>

Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2022-06-24 17:00:42 +08:00
RJ c9e0cccc19
fix payments banner experiment test (#33589)
test needed to be updated as the component did not call useExperiment directly anymore
2022-06-24 13:06:11 +08:00
Chi-Hsuan Huang 417b694e1e
Fix local site url in woocommerce readme (#33579)
* Fix local wp site url in woocommerce/README.md

* Add changelog
2022-06-24 09:32:27 +08:00
Chi-Hsuan Huang 49b07dd9a8
Update shipping task display logic (#33533)
* Update display shipping task logic

* Add changelog

* Update ReviewShippingOptions.php

* Update ReviewShippingOptions.php

* Update ReviewShippingOptions.php

* Update shipping task display logic

* Add doc comments for can_view

* Update comment

* Update shipping task display logic to prevent showing two task simultaneously
2022-06-23 15:56:19 +08:00
Chi-Hsuan Huang 93c15e9f7d
Switch to ESLint to fix admin lint command (#33577)
* Switch woo admin lint command from wp-script to eslint

* Add changelog
2022-06-23 12:00:28 +08:00
Chi-Hsuan Huang dcbae453f8
Update shipping recommendations display logic (#33529)
* Update shipping recommendations display logic

* Add todo comment

* Add changelog

* Render null for shipping recommendations if store only sells digital products

* Fix onboarding product type

* Update plugins/woocommerce-admin/client/shipping/test/experimental-shipping-recommendations.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-06-23 09:54:38 +08:00
nigeljamesstevenson 77a93cc7ad
Update e2e README port number, remove Nx install PreRequisite steps (#33558)
Update e2e README port number, remove Nx install
2022-06-22 19:00:28 -06:00
Ilyas Foo 9c4c3834a7
Fix payments settings banner experiment logic (#33549)
* Delegate payment experiment logic into its own hook and rearrange the checking logic to be before the experiment is called

* Changelog
2022-06-22 16:45:31 +08:00
David Stone c8cb9877a2
Show generic error when trying to process a checkout while offline (#30860)
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-21 17:02:14 -03:00
Paul Sealock a80462d594
Beta Tester: Prep for release (#33463) 2022-06-22 07:26:15 +12:00
Christopher Allford f6e065026e
Fixed Unit Test Suite (#33543)
This commit adds a missing `"test"` command
to the WooCommerce `package.json` file.
2022-06-21 12:11:43 -07:00
Johan de Jong ca524a7266
Add sort method to hide hidden columns in products sortable (#31866)
Co-authored-by: Jorge Torres <jorge@0xbad.com>
2022-06-21 15:26:43 -03:00
Mathias Reker ⚡️ ef8cf9f460
Ordered interfaces (#33488)
Orders the interfaces in an implements or interface extends clause.
2022-06-21 17:42:39 +02:00
David Marín 9095b65d0e
Add $transaction_id to payment_complete hooks (#28930)
Add $transaction_id to payment_complete hooks

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-06-21 11:21:26 -03:00
Michael P. Pfeiffer 958d083600
Fix broken design of Single Product template in block themes and on-sale badge being partially hidden (#33511)
* Fix broken design of Single Product template in block themes and on sale badge being partially hidden

* Update changelog to mention Twenty Twenty-Two explicitly.

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>

Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
2022-06-21 16:26:40 +05:30
Néstor Soriano 3b089f97dc
[PHP 8.1] Fix code that throws deprecation notices in tests in PHP 8.1 (#31333)
* Fix phpcs errors and warnings

* Fix code that throw deprecation notices in PHP 8.1

The deprecation notices are about:
- Various "passing null to parameter (...) is deprecated"
- Usage of strftime
- Using "false" as if it was an empty array
- Mismatching return type of implemented interfaces,
  that's fixed by adding #[\ReturnTypeWillChange]

* Fix some more code that throw deprecation notices in PHP 8.1

* Small commenting/formatting fixes.

* Add changelog file

* Formatting.

Co-authored-by: Peter Fabian <peter.fabian.github@gmail.com>
2022-06-21 12:16:44 +02:00
Chi-Hsuan Huang e412d5912b
Migrate `@woocommerce/data` item store to TS (#33482)
Migrate item store to TS
2022-06-21 16:46:30 +08:00
Chi-Hsuan Huang 7068c78101
Fix JS lint errors (#33484)
* Fix @woocommerce/data lint errors

* Fix internal-e2e-builds lint error

* Fix lint errors
2022-06-21 16:37:34 +08:00