Commit Graph

65764 Commits

Author SHA1 Message Date
Ames Plant c5faf64bfa
[Accessibility] Add screen reader text to the gallery trigger link and update it to a… (#50493)
* 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>
2024-10-22 10:17:04 +02:00
Manish Menaria 0d9d06cd46
Fix: Upsells collection not showing correct products on frontend (#51730)
* 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>
2024-10-22 12:56:06 +05:30
Manish Menaria e6d0a906fb
Product Collection: Hide preview label when specific product is selected (#52150)
* 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>
2024-10-22 12:54:16 +05:30
Alba Rincón 25cc4630be
Adapt receipt to take into account order status (#51853)
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
2024-10-21 15:38:16 -07:00
louwie17 cd3d957bec
Update/storybook commands to use wireit (#51701)
* Integrated wireit to storybook

* Attempt at integrating wireit

* Update wireit dependencies for storybook package

* Add changelog

* Remove unneeded --if-present and regex in pnpm command

* Remove unneeded dependency for storybook build command

* Add missing dependency in blocks storybook build script
2024-10-21 20:14:55 +00:00
Barry Hughes 92063b0817
Revert #51598 (#52166)
* 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.
2024-10-21 10:17:05 -07:00
Francesco aeade9d9ac
fix: dark theme support for "change address" cart button (#51878)
* 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>
2024-10-21 16:06:17 +01:00
Fernando Marichal 2a89e91b58
Product Collection: Add Cross-Sells collection (#52068)
* Add cross-sells

* Fix block title

* Rename product_reference

* Add unit tests

* Add changelog

* Fix lint
2024-10-21 11:25:27 -03:00
Maikel Perez 3c2180f296
[CYS - Core] Unit Test: Add test for the util function to install fonts on the JS side (#52172)
* Remove duplicated fonts.ts file

* Add unit tests to check the getFontFamiliesAndFontFaceToInstall function

* Add changelog file
2024-10-21 09:47:45 -03:00
Francesco 1686b2c14b
fix: ValidatedTextInput attribute (#51971)
* fix: ValidatedTextInput  attribute

* lint in muh belly

* TDD

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* undo props change

* custom error message prop

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-10-21 11:00:11 +01:00
Mike Jolley a882acc7e3
Fix notices caused by legacy fee dynamic properties (#52063)
* Define legacy fee dynamic properties

* changelog
2024-10-21 09:20:05 +01:00
Herman 5b3289264f
Do not show product card footer for Business Services products (#52118)
* 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>
2024-10-21 08:48:35 +02:00
Jason Kytros 782a3c7508
Run `wc_update_950_add_brands_enabled_option` on WC 9.5 update (#52051)
* 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>
2024-10-21 09:15:31 +03:00
Chi-Hsuan Huang 9c5e7beb71
Remove options to re-enable setup task list after completion (#52146)
* Remove re-eanble setup tasklist option

* Add changelog

* Remove re-eanble setup tasklist option from settings when setup task has previously completed

* Use is_complete check instead
2024-10-21 12:05:18 +08:00
Chi-Hsuan Huang ebc486103c
Prepare 2.5.0 Beta Tester Release (#52181)
* Update changelog.txt

* Bump version

* Update composer.lock
2024-10-21 11:47:18 +08:00
Chi-Hsuan Huang 04ce5182a0
Fix ExtendStore Task Not Marked as Completed Upon Navigating Back to Home (#52127)
* Invalidate the task list completion when a task is clicked

* Add changelog

* Fix test
2024-10-20 23:41:30 +00:00
Chi-Hsuan Huang b5501426b4
Add tool to reset "Launch your store" and coming soon mode changes (#52149)
* Add tool to reset "Launch your store" and coming soon mode changes

* Update docs

* Update docs

* Address PR feedback
2024-10-21 07:22:16 +08:00
Gabriel Manussakis 3c076b5187
[Accessibility] Improve checkout error messages (#49094)
* 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>
2024-10-18 18:00:46 +02:00
nigeljamesstevenson 864f5448d8
Update test-assistant-issue-review.yml 2024-10-18 16:23:20 +01:00
Joshua T Flowers 67fb81095f
Cache block asset resource hints (#51874)
* 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>
2024-10-18 07:37:08 -04:00
Albert Juhé Lluveras 7125986053
Add sizes attribute to Product gallery thumbnail images to better load the appropriate resolution (#52073)
* Add sizes attribute to Product gallery thumbnail images to better load the appropriate resolution

* Add changelog file
2024-10-18 10:56:46 +02:00
Manish Menaria b4605c75e5
Fix: Multiple issues related to MySQL having ANSI_QUOTES enabled in Product Filters (#51316)
* 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>
2024-10-18 09:46:32 +05:30
Chi-Hsuan Huang 8ad73e6b11
Remove "banner" layout option from inbox note (#52088)
* Remove deprecated "banner" layout option

* Add changelog

* Remove banner layout from test and beta tester

* Add changelog

* Add changelog
2024-10-18 03:24:34 +00:00
Alba Rincón 9937242035
Add new email for notifying customers when an order fails (#51778)
* 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
2024-10-17 17:11:45 -07:00
Chi-Hsuan Huang c9ab2d67af
Update core profiler redirect to jetpack screen logic (#52095)
* Update core profiler redirect to jetpack screen logic

* Add changelog

* Only redirect when jetpack is selected
2024-10-18 05:34:12 +08:00
Chi-Hsuan Huang 9e83d0cd6a
Hide platform selector text cursor (#52093)
* Hide text cursor for platform selector

* Add changelog
2024-10-18 05:34:00 +08:00
github-actions[bot] 2f97ab7338
Delete changelog files based on PR 51735 (#52122)
Delete changelog files for 51735

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-10-17 09:33:41 -07:00
Veljko V. 6eb01a2e35
Update editor util method to make it compatible with Gutenberg new labeling Block Inserter (#52107)
* Update string for Block Inserter

* Add changelog

* Update util method and add comment
2024-10-17 17:10:59 +01:00
Mike Jolley 3c830d6f3f
Add/cart link in checkout header 44837 (#51948)
* 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>
2024-10-17 16:50:12 +01:00
Albert Juhé Lluveras 9f26128dc2
Fix fatal when OrdersTableMetaQuery::generate_where_for_clause_value() didn't return a string (#52065) 2024-10-17 08:54:46 +02:00
Chi-Hsuan Huang 47db965730
Update makepot-audit include path: Replace 'client' with 'assets (#52096)
* 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>
2024-10-17 14:03:37 +08:00
Pascal Birchler 9689a80fa4
Prevent early translation loading (#52055) 2024-10-17 11:04:36 +07:00
Roy Ho bd838d824a
[Experimental] Product filters/remove template parts (#52041)
* 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>
2024-10-16 14:02:25 -07:00
Vladimir Reznichenko 92c8f4168d
[dev] CI: re-specify pr-highlight-changes workflow changes filters (#52062) 2024-10-16 15:12:43 +02:00
RJ 660eeec5cd
fix: i18n shipping region settings placeholder text (#52016) 2024-10-16 20:53:19 +08:00
Chi-Hsuan Huang 0eb9f36746
Update the `.distignore` file to exclude the ./client/admin folder from zip (#52052)
* 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>
2024-10-16 20:46:35 +08:00
Vladimir Reznichenko f22f397943
[dev] CI: re-specify pr-lint-markdown workflow changes filters (#52058) 2024-10-16 13:46:06 +02:00
Joshua T Flowers cdfcd94358
Limit loading product block editor to admin pages and rest requests (#51954)
* Limit loading product block editor to admin pages and rest requests

* Add changelog entry
2024-10-16 06:57:06 -04:00
Karol Manijak 40a9656f7b
Product Collection: Fix JS error when client-side nav is disabled (#52039)
* Prevent accessing unexisting context in Product Collection

* Add changelog

* Remove unnecessary OR

* Change the approach to cleaner one

* Improve the condition
2024-10-16 12:03:29 +02:00
Vladimir Reznichenko 46433747a2
[dev] CI: liverage composer packages cache in pr-lint-monorepo workflow (#52054) 2024-10-16 12:02:31 +02:00
Vladimir Reznichenko e148229edb
[dev] Monorepo: consolidate syncpack config, regroup react and testing deps around react version (#52022) 2024-10-16 09:55:36 +02:00
Ilyas Foo 3237def0ef
Fix products base incorrectly matching pages with the same prefix (#52028)
* 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
2024-10-16 12:30:54 +08:00
Ilyas Foo e49009b9a9
Fix core profiler extensions page from selecting activated plugins (#52029)
* Add check to disallow selecting activated plugins

* Changelog
2024-10-16 11:00:36 +08:00
Maikel Perez 63fdf72645
New Product Editor: For Grouped Products, the pricing fields are displaying even though they shouldn't (#51987)
* Disable pricing fields when the product type is grouped

* Add changelog file

* Fix php linter error
2024-10-15 09:42:04 -03:00
Maikel Perez ddb7e8380c
Product Editor: Alignment of SKU and GTIN fields is off (#51988)
* Fix the icon alignment when shown as part of the input label

* Add changelog file
2024-10-15 09:39:53 -03:00
nigeljamesstevenson 68819839d2
Delete plugins/woocommerce/changelog/51912-fix-rest-api-fatal 2024-10-15 13:19:28 +01:00
Mayisha c5ada6a753
Create HPOS tables if they do not exist when enabling compatibility mode (#51973)
* 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>
2024-10-15 10:18:19 +02:00
Brian bca41d4c18
Check for empty value in get_order_id_by_order_key() (#40254)
* 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>
2024-10-15 06:32:53 +00:00
Vladimir Reznichenko ebeefdd315
[dev] Monorepo: relax webpack TypeScript errors (turn into warnings) (#51993)
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.
2024-10-15 08:21:56 +02:00
Sam Seay be85cd3dcb
Improve Twenty Twenty-Five theme compatibility for cart and checkout (#51725) 2024-10-15 16:47:20 +13:00