Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Product price atomic block (All Products & Single Product) doesn't honor the "Redirect to the cart page after successful addition" setting #4074

Closed
Aljullu opened this issue Apr 19, 2021 · 5 comments
Labels
block: all products Issues related to the all products block. block: single product Issues related to the single product block. block-type: product elements Issues related to Product Element blocks. type: bug The issue/PR concerns a confirmed bug.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Apr 19, 2021

To reproduce

  1. Go to WooCommerce > Settings > Products and check the "Redirect to the cart page after successful addition" option.
  2. In the frontend, go to a page with the All Products block.
  3. Add a product to your cart using the All Products block.
  4. Notice you are not redirected to the cart page.

The same can be reproduced with the Single Product block and the Product price block available in dev builds.

Expected behavior

You should be redirected to the cart page when adding a product to your cart. This behavior works in the Shop page but it doesn't in the All Products block.

@Aljullu Aljullu added type: bug The issue/PR concerns a confirmed bug. block: all products Issues related to the all products block. labels Apr 19, 2021
@mikejolley
Copy link
Member

I guess the main question here is, do we want to support this option, and if not, how can we communicate this? This is one of those options where I think we should revisit how things work. View cart links are shown after adding to cart so it's not a massive inconvenience to use those, and by redirecting we prevent other items being added at the same time.

@Aljullu
Copy link
Contributor Author

Aljullu commented Apr 22, 2021

I think there are valid use-cases for this option. I'm thinking of stores that only sell one product or the products they sell exclude the others (imagine a site that sells three types of subscriptions, but a user can't have more than one subscription active).

Worth pointing out the same issue happens with the Single product block and the Product price atomic block. I updated the issue description and labels accordingly.

@Aljullu Aljullu added block: single product Issues related to the single product block. block-type: product elements Issues related to Product Element blocks. labels Apr 22, 2021
@Aljullu Aljullu changed the title All Products block doesn't honor the "Redirect to the cart page after successful addition" setting Product price atomic block (All Products & Single Product) doesn't honor the "Redirect to the cart page after successful addition" setting Apr 22, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Jun 22, 2021
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Jun 25, 2021
@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

Internal: After 10 days with no activity this issue will be automatically be closed.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Aug 25, 2021
@nerrad nerrad removed the status: stale Stale issues and PRs have had no updates for 60 days. label Aug 26, 2021
@Aljullu
Copy link
Contributor Author

Aljullu commented Oct 8, 2021

This seems to be a duplicate of #1766.

@Aljullu Aljullu closed this as completed Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: all products Issues related to the all products block. block: single product Issues related to the single product block. block-type: product elements Issues related to Product Element blocks. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

No branches or pull requests

3 participants