You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
While developing the Single Product block, we replaced the Product Add To Cart with the new Add to Cart with Options block. We noticed that when a user visits any page/post/template that is not the Single Product Template and clicks on the Add to Cart with Options block to add the product to the cart, the page is redirected to the product page, which I think it can be not very clear for the users.
To reproduce
Steps to reproduce the behavior:
Log in to your WordPress dashboard;
Go to Appearance > Themes, and select a block theme (for example: Twenty-twenty three);
Go to Appearance > Site Editor;
Click on Template Parts > Header;
Click the Edit button;
Click on the "+" icon to add a new block and search for "Single Product" block in the search bar;
Click on the "Single Product" block to add it to your page or post;
Select a product on the Product Selector and click on the Save button;
Go to your website;
Check that the page is redirected to the product page.
Screenshots
Screen.Recording.2023-03-16.at.17.34.10.mov
Expected behavior
I can see 2 scenarios that we could expect for when the user clicks on Add to Cart with Options button:
Add the product to the cart, without redirecting the user, or;
Add the product to the cart, and redirect the user to the Cart page
The only thing we should not
Environment
WordPress (please complete the following information):
WordPress version: 6.1.1
Gutenberg version (if installed): [e.g. 12.0.0]
WooCommerce version: [e.g. 6.1]
WooCommerce Blocks version: [e.g. 7.0.0]
Site language:
Any other plugins installed:
WordPress (please complete the following information):
WordPress version: 6.1.1
Gutenberg version (if installed): 15.0.1
WooCommerce version: 7.6.0-dev
WooCommerce Blocks version: 9.9.0-dev
Desktop (please complete the following information):
OS: MacOS Ventura
Browser Chrome
Version 111.0.5563.64
Additional context
Initially, the Add to Cart with Options was built to work inside the Single Product Template. However, now that we are developing the Single Product Block, we are reusing the same block as an inner block, and for this reason, we need to make the Add to Cart with Options block work properly on any page/post/template.
The text was updated successfully, but these errors were encountered:
thealexandrelara
changed the title
Add to Cart Form: Redirects to the product page after clicking the button
Add to Cart Form: Redirects to the product page after clicking the button and styles is not being applied correctly
Mar 21, 2023
thealexandrelara
changed the title
Add to Cart Form: Redirects to the product page after clicking the button and styles is not being applied correctly
Add to Cart Form: Redirects to the product page after clicking the button
May 15, 2023
thealexandrelara
changed the title
Add to Cart Form: Redirects to the product page after clicking the button
Add to Cart with Options: Redirects to the product page after clicking the button
Jun 2, 2023
Describe the bug
While developing the Single Product block, we replaced the Product Add To Cart with the new Add to Cart with Options block. We noticed that when a user visits any page/post/template that is not the Single Product Template and clicks on the Add to Cart with Options block to add the product to the cart, the page is redirected to the product page, which I think it can be not very clear for the users.
To reproduce
Steps to reproduce the behavior:
Screenshots
Screen.Recording.2023-03-16.at.17.34.10.mov
Expected behavior
I can see 2 scenarios that we could expect for when the user clicks on Add to Cart with Options button:
The only thing we should not
Environment
WordPress (please complete the following information):
WordPress (please complete the following information):
Desktop (please complete the following information):
Additional context
Initially, the Add to Cart with Options was built to work inside the Single Product Template. However, now that we are developing the Single Product Block, we are reusing the same block as an inner block, and for this reason, we need to make the Add to Cart with Options block work properly on any page/post/template.
The text was updated successfully, but these errors were encountered: