* fix Add To Cart form layout on post editor
* improve code
* fix conflict after merge
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>
* CYS: Remove GO_BACK_TO_HOME state from the Transitional screen
* Add changelog file
* Fix unit tests
* Redirect to the admin home page instead of the site home page
* Force billing email lowercase in store API validation routine
* Changelog
* Update plugins/woocommerce/changelog/fix-50329-store-api-email-restrictions-case
Co-authored-by: Alex Florisca <alex.florisca@automattic.com>
---------
Co-authored-by: Alex Florisca <alex.florisca@automattic.com>
* Associate shipping calculator button to its form in classic Cart
* Associate shipping calculator button to its form in block Cart
* Add changelog file
* Bump shipping-calculator template version
* Filter product collection variations by 'block' scope
This commit updates the product collection feature to only show variations
with the 'block' scope in the collection chooser. To achieve this:
1. Added 'block' to the scope array for various product collection variations
(best-sellers, featured, hand-picked, new arrivals, on-sale, related,
top-rated, and upsells).
2. Modified the collection chooser logic to filter variations based on the
'block' scope.
* Product Collection: Hide collection chooser toolbar for non-block scoped collections
This commit modifies the ToolbarControls component in the Product Collection block to conditionally render the CollectionChooserToolbar. The toolbar is now only displayed for collections with a scope that includes 'block'.
* Add scope property to product collections in E2E tests
This commit adds the 'scope' property to all registered product collections
in the E2E test plugin. The 'scope' is set to ['block'] for each collection.
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Rename isShowCollectionChooserToolbar to showCollectionChooserToolbar
for better readability.
* Add documentation and refactor for product collection scope
This commit introduces the following changes:
1. Update documentation to explain the `scope` argument for product collections
2. Refactor Collection Chooser and toolbar controls to handle default scope
3. Remove explicit `scope` from test collections to align with default behavior
* Add E2E tests for Product Collection scope argument
This commit adds E2E tests to verify the behavior of Product Collections
registered with different scopes. It includes:
- Tests for collections with 'inserter' and 'block' scopes
- Verification of visibility in Collection Chooser
- Checks for 'Choose collection' button visibility
* Generate manifest file
* Generate manifest file
* docs: Remove unsupported emojis from product collection documentation
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add screen reader text to the gallery trigger link and update it to a button
* Fix linting error for line too long
* Fix linting double arrow alignment
* Update version
* Linting spacing fix
* Add a mixin for the product gallery trigger
* Move product gallery trigger to mixin and add a cursor state
* Remove unnecessary mixin import
* Add focus style to gallery trigger on TT1 theme
* Update gallery trigger mixin
* Update product gallery trigger markup
* Update changelog text
---------
Co-authored-by: Gabriel Manussakis <gabrielmanussakis@gmail.com>
Co-authored-by: Gabriel Manussakis <9420947+Manussakis@users.noreply.github.com>
* Fix: Upsells collection not showing correct products on frontend
This commit addresses an issue where the Upsells collection wasn't displaying the correct products on the frontend. The problem was caused by a variable name mismatch in the condition checking for empty product references.
* Add changefile(s) from automation for the following project(s): woocommerce
* Rename product_references variable for consistency
* Update variable name
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
* Hide preview label when a specific product is selected
This commit modifies the Product Collection block to hide the preview
label when a specific product is selected by the user. It addresses the
issue where the preview label was still showing even when a product
reference was available.
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>
This PR adds a new Payment status field to the order receipts.
* Adapt receipt to take into account failed orders
* Add missing param
* Add changefile(s) from automation for the following project(s): woocommerce
* Add a new section to show the order status
* Remove unused css
* Replace order status by payment status, possible values are only failed or success
* Change logic to use order failed instead of order paid
* Revert changes made to (HPOS) order editor meta box hooks (original change: PR#51598).
* Restore method param (was inadvertently stripped).
* Provide further explanation re types supplied via `add_meta_boxes`.
* Changelog.
* fix: dark theme support for "change address" cart button
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>
* Do not show product card footer for Business Services products
* Add changefile(s) from automation for the following project(s): woocommerce, woocommerce/client/admin
---------
Co-authored-by: github-actions <github-actions@github.com>
* Run `wc_update_950_add_brands_enabled_option` on WC 9.5 update
* Add changefile(s) from automation for the following project(s): woocommerce
* Update wc-update-functions.php
---------
Co-authored-by: github-actions <github-actions@github.com>
* Improve required info for screen readers on checkout fields
* Add style to inline error message on checkout fields
* Add id attribute to terms error
* Improve accessibility of checkout errors messages
* Prevent screen readers from reading the asterisk on checkout fields
* Revert spacing change
* Revert spacing change
* Add changelog file
* Decrease line length
* Lowercase the required term
* Fix query methods in checkout tests
* Add space before required text for screen readers
* Fix query of shipping fields on legacy checkout tests
* Remove asterisk from field name on legacy checkout test
* Remove invalid character in Phone and Email fields on legacy checkout test
* Add asterisk to get phone and email by label on legacy checkout test
* Fix field labels for legacy checkout tests
* Fix php lint errors
* Add required tem to the Government ID input on tests
* Revert changes on required fields label
* Create checkout-inline-error-message mixin
* Replace SCSS variable with a CSS one
* Add checkout inline error message to T17
* Add checkout inline error message to T19
* Add checkout inline error message to TT
* Add checkout inline error message to TT1
* Add checkout inline error message to TT2
* Add checkout inline error message to TT3
* Include notice banner block in the notice selectors
* Add inline documentation to role attribute removal
---------
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
* Cache block asset resource hints
* Combine resource hints under single cache transient
* Add AssetController tests
* Add changelog entry
* Skip cache use in development mode
* Fix up lint errors
* Revert init method back to protected and ignore linting
Co-authored-by: Mike Jolley <mike.jolley@me.com>
---------
Co-authored-by: Mike Jolley <mike.jolley@me.com>
* Fix: Use prepared statements for stock status filtering
This commit addresses an issue where the "Filter by stock" block fails when used with MySQL that has ANSI_QUOTES enabled. The problem was caused
by the use of double quotes in the SQL query.
Key changes:
1. Replace direct string concatenation with wpdb->prepare()
2. Use placeholders for stock status values in the IN clause
3. Validate stock statuses against known options before querying
This fix ensures compatibility with different MySQL configurations and improves
the overall security of the query by preventing SQL injection vulnerabilities.
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint errors
* Fix lint issue
* Fix: Use single quotes for attribute taxonomy names in SQL query
- Addresses issue with Filter by Attribute block failing with ANSI_QUOTES enabled
- Prevents "Unknown column" errors for attribute names in SQL queries
* Fix: Use single quotes for SQL IN clauses
This commit addresses an issue where the Filter by Stock block fails when
the database has ANSI_QUOTES enabled. The problem was caused by the use of
double quotes in SQL IN clauses, which are treated as identifiers when
ANSI_QUOTES is enabled.
The fix involves replacing double quotes with single quotes in the following files:
1. plugins/woocommerce/src/Blocks/QueryFilters.php
2. plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php
This change ensures compatibility with databases that have ANSI_QUOTES
enabled, while maintaining the existing functionality for other configurations.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add new email for notifying customers when an order fails
* Remove references to the order completed template and bump versions
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix lint
* Improve default subject and heading
* Remove the additional content message
* Update copy for both emails
* Cart Link Block WIP
* Add pattern for header
* changelog
* We added a header so update test
* Add wc-blocks-header-pattern class
* render_woocommerce_template_part was missing wrappers
* Add missing class
* Update plugins/woocommerce/src/Blocks/BlockTypes/CartLink.php
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Update plugins/woocommerce/src/Blocks/BlockTypes/CartLink.php
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Update plugins/woocommerce/src/Blocks/BlockTypes/CartLink.php
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Further SVG compression
* Remove unnecessary area handling
* Shared icon with mini cart
* Global style support
---------
Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
* Update composer.json to include 'assets' folder and exclude client in makepot-audit command
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Remove product filters template part
* Remove product filters overlay template part
* Update e2e tests
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Fix linting
* Remove unused template part class and remove overlay navigation
---------
Co-authored-by: github-actions <github-actions@github.com>
* Update .distignore file to exclude ./client/admin folder from zip
* Add changefile(s) from automation for the following project(s): woocommerce
* Update .distignore
* Exclude /client/admin/ folder from zip in .distignore
---------
Co-authored-by: github-actions <github-actions@github.com>
* Prevent accessing unexisting context in Product Collection
* Add changelog
* Remove unnecessary OR
* Change the approach to cleaner one
* Improve the condition