-
Notifications
You must be signed in to change notification settings - Fork 219
Cross-Sells block: Replace <AddToCartButton /> with <ProductButton /> #8914
Cross-Sells block: Replace <AddToCartButton /> with <ProductButton /> #8914
Conversation
…oduct-button-block
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: -8.51 kB (-1%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
…ace-add-to-cart-block-with-product-button-block
Will you also be removing the block thats not in use, or is this used elsewhere? |
To remove the "Add to Cart" block, @kmanijak created woocommerce/woocommerce#44503. I'd keep this separate from this PR, as it requires in-depth testing. I also noticed that all E2E tests are failing currently. I briefly looked into this, but haven't had time to see what's causing this. What I noticed was that all E2E tests of the featured branch are also failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good to me but we should make sure it's not this causing e2e breakage. I noticed some visual bugs on trunk so it might be unrelated.
…ace-add-to-cart-block-with-product-button-block
Thanks for your review, @mikejolley. It appears that the failing E2E tests were related to #8928. I just ran the failing E2E tests again, and all tests are passing now: |
* Dummy commit to open a PR * Revert the last change * Ensure Checkout block supports the theme-level global styles for `Colors » Buttons` (#8844) * Add GS support for button colors in Checkout block * Sync button hover effect with GB * Fix link margin/padding (#8908) * Replace <AddToCartButton /> with <ProductButton /> (#8914) * Add GS support for button typography in Checkout block (#8918) * Ensure Checkout block supports the theme-level global styles for Typography » Buttons (#8892) * Remove classname from cart image to avoid conflicts (#8898) Co-authored-by: Niels Lange <[email protected]> * Use consistent and semantically correct HTML elements in the Cart and Checkout blocks (#9065) * Allow button height to adjust * Ensure to display full width heading background * Inherit font style and font weight for headings * Inherit font style and font weight for textarea * Inherit font family and font weight for buttons --------- Co-authored-by: Niels Lange <[email protected]> Co-authored-by: Mike Jolley <[email protected]>
Fixes #8858
In woocommerce/woocommerce#44503, @kmanijak suggested removing the Add to Cart block as that block is experimental, hasn't been touched for 3 years and as there's a newer block. Currently, the Cross-Sells Block is still using the Add to Cart block. This issue aims to replace with within the Cross-Sells Products block.
Screenshots
Testing
Automated Tests
User Facing Testing
Select options
,View products
andAdd to cart
are visible.Proceed to Checkout
button.Select options
button opens the corresponding product page.View products
button opens the corresponding product page.Add to cart
button adds that Cross-sell product to the cart.WooCommerce Visibility
Changelog