Commit Graph

52628 Commits

Author SHA1 Message Date
Niels Lange c48630463f
Add obsolete spaces 2023-07-18 15:49:09 +02:00
Niels Lange 0abc8b247e
Add snippet for chaning the number of related products output 2023-07-12 19:56:01 +02:00
Niels Lange ba690a3d19
Link code snippet 2023-07-12 16:30:47 +02:00
Niels Lange 5bb07fd579
Add snippet for adding content above the login/register form (#39177) 2023-07-12 16:18:25 +02:00
Niels Lange 4b7e828cf9
Add directory for snippet docs and include README.md (#39176) 2023-07-12 16:14:00 +02:00
Darren Ethier a5f46e9b96
Use sentence case for heading.
Co-authored-by: Niels Lange <info@nielslange.de>
2023-07-12 08:32:47 -04:00
Darren Ethier ba053f791e
Update to follow WooCommerce CS
Co-authored-by: Niels Lange <info@nielslange.de>
2023-07-12 08:32:13 -04:00
Sam Seay e91a72b8a1
WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096)
* Extract docs manifest generation into a CLI tool
2023-07-12 19:29:15 +12:00
rodelgc dddd0e65ac
E2E: Update locators and force-check in `order-email-receiving` and `order-emails` specs (#39159)
* Add changelog

* Update locator and force check
2023-07-11 13:02:00 -07:00
Matt Sherman 17f83af095
Product Editor: Add help menu item to description modal editor (#39178)
* More menu skeleton

* Help menu item

* Tracks event for help menu item

* Remove invalid/unused ref from MoreMenu

* Changelog
2023-07-11 13:19:53 -04:00
Thilina Pituwala 19b3d40595
Prevent unwanted helper api calls when loading subscription notes (#37378)
* Load subscription notes only via WC Admin home page and extensions page to avoid calling helper API endpoints unnecessarily.

* Adding change log.

* Moving connection check after the early return statements.

* Use admin_head hook instead of admin_init to load subscriptions notes.

Since `get_current_screen` function can not be called within `admin-init` hook it is not possible to determine if the subscriptions are being loaded via WC related page or not.

* Update doc block.
2023-07-11 09:02:32 -05:00
Nathan Silveira e85491bdea
Focus on name field when mounting and update summary field UI (#39050)
* Move placeholder of summary to help text at bottom of the component

* Focus the name field when mounting

* Add changelog

* Create 'autoFocus' block attribute instead of using useEffect

* Add changelog
2023-07-11 09:48:26 -03:00
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
Darren Ethier 71b0d32216 add directory for snippet docs and include README.md 2023-07-10 17:23:08 -05:00
Darren Ethier 67540a9f0e Add snippet for adding content above the login/register form 2023-07-10 17:19:58 -05: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
Moon 7c5b98ea02
Remove accents from country labels to match geo detected country data (#39110)
* Remove accent for comparison

* Add changelog

* Use localCompare instead
2023-07-07 10:50:42 -07:00
Nathan Silveira 7767f9e78f
Add unit tests to tracks events fired through PHP (#39133)
* Add tests for class-wc-orders-tracking

* Add tests for orders tracking

* Add test for orders_view_search

* Create tests for settings tracking

* Add tests to product tracking

* Add changelog

* Add tests for importer tracking and fix phpcs issues

* Disable phpcs rules
2023-07-07 12:41:39 -03:00
Nathan Silveira ee900c9b33
Add button on toolbar to toggle show/hide block inspector (#39090)
* Add button on toolbar to toggle show/hide block inspector

* Move changelog

* Copy drawerright icon from @wordpress/icons
2023-07-07 12:14:41 -03:00
Gan Eng Chin afdc00e1fc
Add Klaviyo into default free extensions for onboarding task list (#39087) 2023-07-07 23:03:35 +08:00
Barry Hughes 5417750757
Fix/ Decrease product total_sales when an order is reversed #23796 (#37842) 2023-07-07 08:01:00 -07:00
Thomas Roberts 71fc49f2fd
Update WooCommerce Blocks to 10.6.0 (#39144) 2023-07-07 07:08:49 -07:00
Abdalsalaam Halawa c317b756bf Fix total sales count tests
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 03213e0174 Use strict comparisons in_array
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 716119822f Order untrash test 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 6b72758d80 test trash/ un-trash order CPT 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 7087470e1f Fix increase/decrease count after order deleting 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 477e626354 Update total sales amount for trashing/restoring order 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 34c6058d02 Add asserting for refund scenario 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa e637e42043 update_total_sales_counts test 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 41cb12c830 Decrease total sales after if order deleted 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa fb0a66a1fb Keep total_sales if order is refunded 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 853e927c08 add changelog 2023-07-07 06:38:40 -07:00
Abdalsalaam Halawa 967285b23b Fix: Decrease total sales per product when an order is reversed 2023-07-07 06:38:40 -07:00
Barry Hughes f58580452c
Support hosts which do not have access to 'DUAL' table (#39111) 2023-07-07 05:32:42 -07:00
Gan Eng Chin 4aab269c89
Rename "Install plugin" button text to "Install extension" in Marketing page (#39130) 2023-07-07 20:31:57 +08:00
Barry Hughes 8e5d930c48
Closing and opening tags must match. (#39053) 2023-07-07 05:30:12 -07:00
Vedanshu Jain 7762ff9008
Clean up after testing `wc_load_cart()` (#39136) 2023-07-07 17:27:47 +05:30
barryhughes ecf64a71b2 Clean up after testing `wc_load_cart()`. 2023-07-06 17:36:44 -07:00