Commit Graph

65436 Commits

Author SHA1 Message Date
Veljko V. ac7321e5b7
E2E Fix shopper mini-cart test (#51741) 2024-09-27 22:16:21 +02:00
Mike Jolley c0c162ee61
Delayed account creation: Use Block Hooks to inject block into the Order Confirmation template (#51582)
* Force block to be inserted after account summary

* Clean up block hooks

* Changelog

* Escape strings in default content

* Init $notice to prevent PHP notice
2024-09-27 15:13:26 +01:00
Mike Jolley 606133eb9f
Update Payment Integration Docs to Include more examples (#51683)
* Update payment method docs

* Update manifest
2024-09-27 14:24:54 +01:00
Mike Jolley 63637c0235
Fix postcode validation within the legacy cart show_shipping method (#51623)
* Postcode should be compared to empty string to prevent `0` passing.

* Changelog
2024-09-27 11:45:33 +01:00
louwie17 536bb4627e
Remove unnecessary line product button (#51729)
* Remove copy/paste line

* Add changelog
2024-09-27 10:06:21 +00:00
Manish Menaria 9839cc6648
Product Collection: Replace warning and tip blocks with emoji-based callouts in the documentation. (#51727)
* Replace warning and tip blocks with emoji-based callouts

This was done as [WooCommerce Developer Docs](https://developer.woocommerce.com/docs/registering-custom-collections-in-product-collection-block/) doesn't support the callout blocks.

* Update manifest file
2024-09-27 14:15:03 +05:30
Tung Du 870111d8af
Product Collection: add price sorting options (#51670)
Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
2024-09-27 05:22:37 +00:00
Fernando Marichal 98053269ac
Add Dimensions controls to Product Collection block (#51420)
* Add dimensions to product collection

* Refactor width-options-control

* Add product-template changes

* Fix dimensions

* Add changelog

* Remove minHeight

* Remove className addition

* Small refactor in ProductTemplate

* Remove variable

* Fix lint

* undo product-template changes

* Add ProductCollection fixed width

* Fix set_fixed_width_style param comment

* Deconstruct WidthOptionsControl props

* Add line deleted by mistake

* Fix editor alignment

* Fix styles

* Add dimensions to templates and patterns

* Make styles setting more defensive

* Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/inspector-controls/width-options-control.tsx

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

---------

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-09-27 05:04:16 +02:00
Ames Plant 6f1ac95c8d
[Accessibility] Add aria-label for page numbers within pagination (#50447)
* Add aria-label for page numbers within pagination

* Add changelog

* Fix innerText to camel case format

* Update plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection.php

Co-authored-by: Darin Kotter <darin.kotter@gmail.com>

* Add screen reader text to the page numbers in the pagination partial

* Fix linting spacing errors

* Fix linting space remaining

* Bump template on pagination template

* Update plugins/woocommerce/templates/loop/pagination.php

Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

* Add aria-label to pagination numbers

* Improve logic to get current page number

* Rename $r parameter to $html

* Fix post-increment php lint error

* Account for two dots elements to add aria-label to page link

---------

Co-authored-by: amesplant <95257231+amesplant-dmv@users.noreply.github.com>
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Co-authored-by: Gabriel Manussakis <9420947+Manussakis@users.noreply.github.com>
Co-authored-by: Gabriel Manussakis <gabrielmanussakis@gmail.com>
2024-09-27 02:42:58 +02:00
Alexandre Lara 4e0ebd83f4
WooCommerce > Block themes: Remove underline from sale prices (#51462)
* Remove underline from sale prices in WooCommerce block themes

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

* Improve css properties

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 15:26:57 -03:00
Jorge M 6ecf57df5a
Include global_unique_id in product export columns (#51703)
* Add global_unique_id to Exporter

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 18:03:14 +02:00
louwie17 4601416da2
Fix/51435 product collection flaky e2e test (#51663)
* Add a couple checks so the test doesn't move ahead to quickly

* Add changelog

* Remove visible condition
2024-09-26 12:03:06 -03:00
And Finally 729ad1780a
Change aspect ratio of images in theme cards in in-app marketplace (#51705)
* We are now using 16:9 images for themes in the in-app marketplace, so we need to change the image ratio.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 14:55:09 +01:00
github-actions[bot] cd76dabdaa
Update changelog.txt from release 9.3.3 (#51693)
* Prep trunk post release 9.3.3

* update changelog to include 9.3.3 entries and correct formatting

---------

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: nigeljamesstevenson <nigeljamesstevenson@gmail.com>
2024-09-26 06:18:27 -07:00
louwie17 ed1e40204a
Add composition path prefix to storybook to allow publishing to gh-pages (#51700)
Add composition path prefix to storybook
2024-09-26 09:24:29 -03:00
Adrian Moldovan 645832da4b
[e2e tests] Remove basic-setup.spec.js (#51707)
Co-authored-by: Ivan Stojadinov <ivan.stojadinov@automattic.com>
2024-09-26 12:23:49 +00:00
Veljko V. 9b91256654
[e2e] External - Unskip analytics-data test on external sites (#51681)
Unskip analytics data test on external sites
2024-09-26 14:09:46 +02:00
Adrian Moldovan e4554564df
[ci] Bump actions/checkout to v4 (#51708) 2024-09-26 14:57:43 +03:00
Adrian Moldovan 294255b274
[e2e tests] Tag e2e tests that need to be reviewed (#51287) 2024-09-26 13:57:22 +02:00
Adrian Moldovan d9c42fbd27
[e2e tests] Remove test: can make sure WooCommerce is activated (#51706) 2024-09-26 14:57:07 +03:00
Albert Juhé Lluveras 97a0fc02ec
Add theme type to System Status Report (#51682)
* Add theme type to System Status Report

* Add changelog file

* Update tests

* Linting
2024-09-26 08:55:08 -03:00
Adrian Moldovan a47e0ff95a
Update the stalebot exempt label used for skipped tests issues (#51685) 2024-09-26 13:52:13 +02:00
Cem Ünalan 58434b8769
Marketplace: hide subscriptions with maxed connections and fix "not connected" badge (#51610)
* In-App Marketplace: hide subscriptions for maxed out connections

If we don't add this check, subscriptions with no connection allowances,
still show up in the "Available to Use" table. This can be misleading.

* In-App Marketplace: Fix My Subscriptions table row statuses

When there are multiple subscriptions for a product, we can't manage the
state between "installed" and "available to use". This commit separates
some of the functionality between the tables in the My Subscriptions
page.

1) Don't show "not connected" badge on the "available to use" table
2) Don't show the "update" button on the "available to use" table

We can't test the number two, because I noticed we no longer send the
verison number in the WCCOM endpoint

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

* Marketplace: remove unused useEffect

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-26 11:37:44 +00:00
Vladimir Reznichenko a768adb700
[dev] Monorepo: codeowners file update for Flux. (#51709)
Exclude top-level changelog file from Flux ownership.
2024-09-26 13:07:05 +02:00
Vladimir Reznichenko fd62f0083a
[dev] CI: drop an experimental workflow. (#51702)
In this PR, we dropped an experimental workflow and a PoC and are rewriting it.
2024-09-26 10:53:16 +02:00
Veljko V. 15f29b2ace
[e2e] External - Make themes util compatible with external envs and unskip relevant tests (#51509)
* Make themes util compatible with ext env and unskip relevant tests

* Add theme activation in test helper apis and update util

* Fix whitespace lint issue

* Make the util compatible with local and external envs

* Rename to activate theme

* Add theme name empty check

* Simplify theme util and update relevant tests

* Remove only from the test

* Add missing brackets to the shopper test

* Include error handling to see failure on  CI

* Include themes installation in the test setup

* Revert and refact util helper
2024-09-26 10:00:31 +02:00
louwie17 97620e2743
Add WooCommerce blocks to live storybook (#51679)
* Fix WooCommerce Blocks storybook

* Add blocks storybook to main storybook

* Add post build for iframe.html

* Only add WooCommerce Blocks when building storybook

* Use manager file again and add blocks build for storybook build

* Add changelog
2024-09-26 04:10:37 -03:00
louwie17 64c583fd73
Add missing wp block woocommerce classname (#51617)
* Update CatalogSorting classname to include wp-block class

* Add wp-block class name to the product button block

* Add wp-block classname to the product average rating block

* Add changelog

* Update changelog

* Fix lint issues
2024-09-26 04:00:11 -03:00
Gabriel Manussakis b017579815
[Accessibility] Fix typos in woocommerce-blocks e2e tests (#50738)
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
2024-09-26 06:39:49 +00:00
Karol Manijak c687cdfbb6
Stop using unknown option for rsync during build process (#51696)
* Stop using unknown option for rsync during build process
* Add changelog
2024-09-26 07:07:19 +02:00
Barry Hughes 336e4f2d8a
Fix reference to `WC_Site_Tracking` (#51525)
Fix reference to `WC_Site_Tracking`.
2024-09-25 19:55:30 -07:00
Sam Seay 663a32f57a
50555 - Update button copy and change to outline button (#51609) 2024-09-26 13:17:38 +12:00
Sam Seay 018b73cd58
Add an option to mini cart block to navigate directly to checkout. (#51283) 2024-09-26 13:16:21 +12:00
Barry Hughes 37bb36994b
Update stable tag to 9.3.3 (#51692)
woorelease: Update stable tag to 9.3.3
2024-09-25 10:34:52 -07:00
Seghir Nadir 2f2d98ed45
Preserve dash in Mongolia postcodes (#51674)
* Preserve dash in Mongolia postcodes

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-25 17:24:52 +02:00
David Garcia Watkins bc56050569
[wcml-4848] Fixes for incorrect blocks in WC's refunds policy page (#51620)
* [wcml-4848] Fixes for incorrect blocks in WC's refunds policy page

Closes #51618

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-25 15:42:17 +02:00
Vladimir Reznichenko 3f4873bf3f
[dev] Monorepo: core build steps tweaks (copying assets) (#51612)
In this PR we aim to reduce filesystem modification when copying assets into the core by splitting copy tasks in three (one per source package) and using rsync over remove/copy combo.
2024-09-25 15:13:14 +02:00
Albert Juhé Lluveras 49fa0a7b1a
Allow setting the Shop page as the homepage in block themes (#51626)
* Allow settings the Shop page as the homepage in block themes

* Linting

* Add changelog file

* Fix SingleProductTemplateTests docblock

* Add unit tests

* Fix missing Shop page id

* Fix missing Shop page id (II)

* Fix missing Shop page id (III)

* Cleanup
2024-09-25 10:06:31 +02:00
Corey McKrill c4e758bab6
Redirect to canonical product permalink (#51637)
* Redirect to canonical product permalink

This ensures that if product permalinks are set to include the
%product_cat% replacement token, arbitrary values for that part of the
URL will redirect to the canonical product category value, rather than
successfully loading the single product page.

Fixes #24244

* phpcs exception

* Update plugins/woocommerce/changelog/fix-24244-custom-permalink

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2024-09-24 14:07:08 -07:00
Jonathan Lane 30ffbce09a
WC Cleanup plugin (#51593)
* WC cleanup plugin

* Fix linter errors

* More linter fixes

* Clean up spacing

* File doc comment

* Remaining linter problems

* Linter warnings too.  Sigh.

* Media cleanup, DB table cleanup, tax rate cleanup

* Exclude media files used in tests from cleanup

* Exclude media files regardless of extension

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-09-24 13:31:47 -07:00
Moon 12c2843458
Coming soon: Do not render header and footer if the theme does not support FSE (#51633)
* Render coming-soon template content without header and footer if the current theme is not a fse

* Check for store pages only

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

* Make sure get_the_block_template_html exist

* Lint fixes

* Lint fixes

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-24 19:53:31 +00:00
louwie17 a979d95130
Replace setTimeout with callback function for more reliable E2E tests (#51653)
* Replace setTimeout with callback function for more reliable E2E tests

* Add changelog

* Remove removePreview logic from product collection page
2024-09-24 12:24:43 -03:00
nigeljamesstevenson 21f7821c2d
Update test-assistant-api-rest-change-tracker.yml 2024-09-24 15:11:39 +01:00
nigeljamesstevenson 359e2d0249
Update test-assistant-api-rest-change-tracker.yml 2024-09-24 15:04:57 +01:00
github-actions[bot] 9f5bc4bc4e
Delete changelog files based on PR 51630 (#51656)
Delete changelog files for 51630

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-24 19:40:52 +07:00
Thomas Roberts 94460bb394
Check if the order needs shipping before validating shipping address (#51630) 2024-09-24 12:53:24 +01:00
Chi-Hsuan Huang 442cb4e81b
[Beta tester] Add tool for changing woocommerce.com base URL (#51537)
* Refactor WooCommerce Helper class

This commit refactors the WooCommerce Helper class in the `class-wc-helper.php` file. The changes include:
- Updating the comparison operator from `==` to `===` in the `activate_plugin` condition.
- Renaming the `get_install_base_url` method to `get_woocommerce_com_base_url`.
- Adding a new `get_install_base_url` method that returns the base URL for the plugin auto installer.

These changes improve the readability and maintainability of the code.

* Refactor data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion

- Refactor the data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion to use a dynamic base URL for the data sources.
- Update the deprecated DATA_SOURCES constant to an empty array in each class.
- Add a new method get_data_sources() in each class to return the updated data sources with the dynamic base URL.
- Modify the constructor of each class to use the get_data_sources() method instead of the deprecated DATA_SOURCES constant.

* Add changelog

* Add set-woocom-base-url tool

* Add changelog

* Rename woo_com and woocom -> wccom

* Change to falsy check !url

* Change woocom/WOOCOM to wccom/WCCOM

* Change default value to https://woocommerce.com/

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-09-24 19:37:57 +08:00
Jason Kytros 85a048f1fd
Resolved fatal error when applying Brands-restricted coupon (#51577)
* Resolved fatal error when applying Brands-restricted coupon

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-24 14:16:03 +03:00
github-actions[bot] 4858ae62aa
Delete changelog files based on PR 51631 (#51646)
Delete changelog files for 51631

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-24 18:01:46 +07:00
github-actions[bot] ccbd29054a
Release: Remove 9.4 change files (#51530)
Delete changelog files from 9.4 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-09-24 18:00:08 +07:00