* 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
* Fix product base incorrectly flagging as store pages on pages with same prefix
* Changelog
* Remove unused code
* Lint
* Lint
* Slightly moved some codes, improved comments, added extensive examples
* create HPOS tables if do not exist when enabling compat mode
* Add changefile(s) from automation for the following project(s): woocommerce
* remove undefined variable from log
* add newline
---------
Co-authored-by: github-actions <github-actions@github.com>
* check for empty order key
* reverse flow
* Update class-wc-order-data-store-cpt.php
* tabs to spaces
* Add changefile(s) from automation for the following project(s): woocommerce
* spaces to tabs
* fix lint issue - 477 | ERROR | Whitespace found at end of line
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
In this PR, we introduce and integrate a new webpack plugin, which hooks into `fork-ts-checker-webpack-plugin` and turns the specified TypeScript error codes into warnings to enable React 18 migration.