Disable error message on trying to add to cart/redirect?

Created on 20 July 2021, over 3 years ago
Updated 27 September 2024, 3 months ago

Hello there. I'm working on a project where we have a simplified checkout process, where users need to only be able to buy one of a product (it's for buying access to content). We're using Commerce Cart Redirection β†’ to streamline the checkout, so users go directly to checkout when adding to their cart. If a user somehow finds their way back to the product page when they have the product in their cart and clicks the button again, they end up with an error message and stay on the page - in this use case, it would seem like better UX to redirect them to the checkout page for the cart that they already have, but I'm not having any luck figuring out a good way to do this.

I'm only somewhat familiar with the inner workings of Commerce, but fairly experienced with Drupal core.

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ambient.impact Toronto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024