Commit Graph

52651 Commits

Author SHA1 Message Date
Vedanshu Jain bde6fbf01e Handle edge case of order table being unexpectedly not present. 2023-07-13 16:29:58 +05:30
Vedanshu Jain 406f7b6174 Remove references to removed COT seperate feature flag. 2023-07-13 15:35:21 +05:30
Vedanshu Jain dcbddec591 Set option when HPOS tables are created.
Earlier, we were marking this based on whether HPOS is enabled or not, but now that HPOS is enabled (but not authoritative) for everyone, we need a seperate option to track this.
2023-07-13 15:33:42 +05:30
Vedanshu Jain 0fc70027f5 Use custom option for custom order tables feature. 2023-07-13 12:01:14 +05:30
Vedanshu Jain 780f2a1d99 Coding standard fixups. 2023-07-11 20:17:03 +05:30
Vedanshu Jain 5c5b2ce289 Fix syntax from GH UX commit + use consistent description. 2023-07-11 18:49:35 +05:30
Vedanshu Jain 95d2220c7f
Move out HTML out of translatable string for easier translation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:45:06 +05:30
Vedanshu Jain bbd93841da
Fix indentation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:44:09 +05:30
Vedanshu Jain c0dc48df00
Add the `the`.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:58 +05:30
Vedanshu Jain ffb20eb7ec
Use proper pluralization of pending sync message.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:33 +05:30
Vedanshu Jain bdffe69340
Capitalisation fix for posts.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:50 +05:30
Vedanshu Jain 2c53c35a61
Add name so that it's displayed in the incompatible plugins UX.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:32 +05:30
Vedanshu Jain 09b6d67d4f phpcs fix. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 98601052b0 Mior fixups with enable permissioning. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 1d9bed1b5d Fix notice. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 685b6a12df Change method name to be more descriptive. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 52adda154a Fixups when enabling/disabling HPOS. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 8af85218be Flush cache since we are updating option. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 661219fb52 Remove expectation of HPOS setting in advance test. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 37b8094704 Temporary remove COMMIT to see if it fixes tests. 2023-07-11 17:19:29 +05:30
Vedanshu Jain f02b6c5b26 More unit test fixes + throw error when transaction level is invalid. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 3c59b8b4dc More resilient unit tests + return errors as expected from fetching functions. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 56d0bb2fb9 Commit after flipping HPOS toggle to prevent PHPUnit from calling rollback. 2023-07-11 17:19:27 +05:30
Vedanshu Jain c3e84597c6 Coding standard fixes 2023-07-11 17:18:13 +05:30
Vedanshu Jain 84f54d5618 Reduce the scope of transaction and enable by default for all. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 2ed274dd78 Return appropriate setting if WC is installing. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 945ebf7d71 Fix options for back compat and readibility. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b95c58bd60 Better function names. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b4dc98a62a Remove auto flip feature as its risky to flip tables without merchant interaction. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1c40f38615 Mark HPOS as always enabled. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 88b696d14a Remove hook for feature setting screen and transaction level setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 01bc0ef89e Add name attr so that it displays correctly in plugins incompat page. 2023-07-11 17:18:13 +05:30
Vedanshu Jain a2ba3f6b68 Use inbuilt rendering block instead of writing a new template. 2023-07-11 17:18:13 +05:30
Vedanshu Jain f51d6618ef Some more fixups to refreshed UX. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 187ca07098 Add changelog. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 47ca74bdcf Add initial layout for new HPOS setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1d04ddcd11 Pass the correct param in woocommerce_settings_features. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 7fbb12b274
[HPOS] Synchronize order deletions (#37050) 2023-07-11 17:16:18 +05:30
Nestor Soriano 387c91c7b8
Fix the wc_update_total_sales_counts function
It was relying on the 'before_delete_post' hook but it should rely
on 'woocommerce_before_delete_order' instead.
2023-07-11 09:02:42 +09:00
Barry Hughes 0ae1fa1f5a
Validate shipping rates (#39146)
* Validate shipping rates are suitable for all the products in cart

* add changelog

* added phpcs ignore rule

* Refactor shipping rates validation specifically for flat rate

* performant check after CR comments

* account for free shipping

* Added Unit Tests

* fix unit test assertion

* Adding more unit tests and fixing previous one

* Fixing errors because of added test after effects

* move tests location and improve readability

* fix phpcs errors

---------

Co-authored-by: Dimitrios Pantazis <dpanta94@gmail.com>
2023-07-10 16:50:51 -07:00
Vedanshu Jain 04e3ba26a8
[HPOS] Add action for order_edit_form_top as a replacement to edit_form_top (#39165)
Add action for order_edit_form_top as a replacement to edit_form_top for HPOS.
2023-07-10 16:37:26 -07:00
Nima Karimi 1096ddb0d3
Incorporate additional product data to generate AI description (#39150)
* Switching front-end description logic to use new endpoint

* Logging troubles

* Tentively working for title suggestions

* Adding changelog

* Updating to accept altered response body for title suggestions

* Using client-size streaming instead of our own proxy API

* Removing obsolete API code

* implementing feedback

* Refactoring product data logic

* Fixing getAttributes function to work with local attributes

* Allowing for boolean values in product data

* Refactoring getCategories to always return array

* Removing orphaned type

* Refactoring getCategories again

* Refactor productData methods to get attributes and categories

* Include product properties in the prompt for generating description

* Add changelog

* Include local attributes in addition to global attr

* Show error if parsing suggestions fail

---------

Co-authored-by: Joel <dygerati@gmail.com>
2023-07-10 23:35:03 +03:00
Maikel David Pérez Gómez 96c0c5bd74
On-/offboarding copy updates (#39055)
* Change the modal's description test in the first step of the product block editor tour

* Change the modal's description text in the first step of the product block editor guide

* Change the modal's description text in the second step of the product block editor guide

* Change the modal's title and description text in the third step of the product block editor guide

* Change the modal's description text in the four step of the product block editor guide

* Enhance the Options menu of the product block editor

* Add slide up animation and translucent background to the feedback bottom bar

* Change de CES's modal heading text in the product block editor

* Change the notice message after the feedback is being sent from the CES Modals

* Enhance leave feedback modal checkbox labels

* Change leave feedback modal submit button text

* Show success notice after submit the leave feedback modal

* Add changelog files

* Change the illustration in the first step of the feature tour

* Change the modal's title and description text in the first step of the product block editor tour for old users

* Change the modal's title and description text in the first step of the product block editor guide for old users

* Change the modal's title and description text in the third step of the product block editor guide for old users

* Fix unit tests

* Change the customer effort score changelog description

* Change footer forward button to primary and backward button to tertiary in the tour guide modal
2023-07-10 14:51:55 -04:00
jonathansadowski 1cd947a320
Sync 273 (#38983)
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2023-07-10 09:17:27 -05:00
Nestor Soriano 96db657df2
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-07-10 17:46:41 +09:00
Nestor Soriano f589ecfd38
Use constant strings instead of table names for deletion records.
The meta values for deletion records will now be 'posts_table'
and 'orders_table', instead of the hardcoded table names. This is safer
because the database prefix could change (in case of a site migration,
for example).
2023-07-10 16:39:30 +09:00
Nestor Soriano 834675d023
Fix the post type check in DataSynchronizer::handle_deleted_post 2023-07-10 16:03:02 +09:00
Maikel David Pérez Gómez 714e50bf4c
Create variations block with empty state (#39038)
* Create and register woocommerce/product-variations-fields block

* Hide or show the empty state or inner blocks if the product has attributes

* Add changelog files

* Fix php linter errors
2023-07-07 17:15:54 -03:00
Moon 06eb1ea98c
Remove Tiktok from the onboarding plugin suggestion list (#39135)
* Remove Tiktok from plugin suggestion list

* Add changelog
2023-07-07 10:52:11 -07:00
Moon 68ff03063a
Core profiler -- fix the gap at the top on iPad and iPad Mini (#39108)
* Fix unexpected gap on iPad and iPad Mini

* Fix css lint
2023-07-07 10:51:48 -07:00