* 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>
* 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>
* 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
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).
* 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
* Bootstrap server side block definitions
* Add changelog file
* Revert action priority to its prev value
* Check if unstable__bootstrapServerSideBlockDefinitions function exists before call it
* Fix error while dismissing the last alert when there's multiple
* Copy action id to localized action
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint issue
* Improve implementation and add test
---------
Co-authored-by: github-actions <github-actions@github.com>
* Perform feature flag change and redirection in the same request
* Add changelog file
* Remove feature related query args after enabling/disabling it
* Use REQUEST_URI instead of referred one
* Fix lint errors
* Move phpcs to new line
* Use isset instead of empty
---------
Co-authored-by: Nathan Schneider <nsschneider1@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
* Send $product_name through woocommerce_cart_item_name filter only once. Closes#38744.
* Replace additional product name filters, with already filtered variable.
* add additional params to docblock of woocommerce_cart_item_name
* bump template version to 7.9.0
* revert cart_item_name filter change in #37830
* Minor fixes
* Bump template version
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
* Remove letter-spacing and use 500 for font-weight
* Add changelog
* Style updates for the header
* Set letter-spacing to normal
* Use 500 for font-weight
* Remove max-width
* Add changelog
Adds `filter_empty` parameter, so that customer records with specific empty fields can be left out of the results, resulting in more efficient requests.
Fixes#38820
Even if errors are found when populating the order properties, the order object will be returned anyway. Additionally, these errors will be logged as warnings, both when using the new HPOS-based orders datastore and when using the old CPT based datastore.
* Use NumberUtil::round() instead of number_format() in WC_Order::get_item_subtotal()
* Add changelog
---------
Co-authored-by: Jorge A. Torres <jorge@0xbad.com>
* Add product id to product data
* Create a React Hook for updating product slug
* Update product slug when title is updated.
* Add changelog
* Import hooks from index
* Use getPostId util to get product ID
* Only update draft product's slug
* Revert "Always show pricing group fields, disable if not available for a product type (#38531)"
This reverts commit 18f2de2bc4.
* Add changelog and fix lint issues
* Remove call to removed function
* Add new countries in isWCPaySupported
* Add new countries in get_wcpay_countries
* Add new countries in default free extension 'woocommerce-payments'
* changelog
* fox linting issue
* Remove support for Czech Republic, Sweden, Hungary
* Revert "Remove support for Czech Republic, Sweden, Hungary"
This reverts commit 0a8309f664.
* When ExtendedContainer::replace is used and an instance of an object is passed as the replacement, the init method of the passed object will be executed (previously the container would execute init only when creating a new instance from a class name).
* Added the ExtendedContainer::reset_replacement method, this will undo a replace and reset the registration back to its original state (so get will act as if replace had never been executed for the given class name). Note that for shared definitions this needs to be combined with reset_all_resolved.
* Similarly, added the ExtendedContainer::reset_all_replacements method.
* Add possibility to track select and checkbox values for non_option settings
* Track select and checkboxes in abstract-wc-settings-api
* Add changelog
* Add hook comment and ignore phpcs for actions that were already called before
With orders table authoritative, sync disabled, an order with refunds
is deleted, a duplicate deletion record was being created for the refund.
That's because 'upshift_or_delete_child_orders' was deleting the child
orders, which caused a deletion record to be already created; and
after that, 'handle_order_deletion_with_sync_disabled' was again
creating a record for these child orders.
The fix is a bit convoluted because we can't know for sure if
'upshift_or_delete_child_orders' will delete the child orders or not.
* Fix overlapping button position when the height is less than 667px (iphone SE)
* Fix misaligned check icon on mobile
* Prevent the menu from closing when clicking on a selected item
* Add changelog
* Fix lint
---------
Co-authored-by: moon <moon.kyong@automattic.com>
* Remove feature related query args after enabling/disabling it
* Test to see if E2E tests pass
* Revert "Test to see if E2E tests pass"
This reverts commit 120e971f33f22dc3e7eec6e5ab228b1908c56364.
* Add support to remove multiple query params
* Add wc_get_default_product_type_options function
* Use wc_get_default_product_type_options() as initial input for product_type_options filter
* Changelog
* Only record product update on already published products
* Add source into published product tracks event
* Add missing tracks options to product update event
* Track tab clicks in the editor
* Add source to tab clicks
* Record tracks on preview click
* Add events for media gallery, description, and attributes
* Add tracks events to more menu
* Replace new_product_page with source
* Add changelog entry
* Fix lint errors
* Add tracks for About the Editor menu item
* Add onClick event to AboutTheEditor menu item
* Use dropdown option event for classic editor menu click
- When ExtendedContainer::replace is used passing an instance of
an object, the 'init' method will be executed in the instance
when resolving the replaced class name.
- Added the ExtendedContainer::reset_replacement method, this will
undo a 'replace' and reset the registration back to its original state.
- Similarly, added the ExtendedContainer::reset_all_replacements method.
This makes the behavior of wc_get_order to be the same as when HPOS
is disabled (and Abstract_WC_Order_Data_Store_CPT is thus used
instead): the order is still retrieved (although without the errored
properties set) instead of the function just returning false.
An example of when this can happen is if an order refund has the id
of a no longer existing order as the parent id.
* get_index_columns using SHOW INDEX FROM query instead of information_schema
* returning empty array for clarity
* ignore interpolated query
* adding changelog entry
* Adding unit tests for the updated DatabaseUtil::get_index_columns()
---------
Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>