Woo Commerce Add to Cart Straight to Checkout
-
Hello,
I’m wondering if someone can help me with a problem I’m having. On my site, I’m selling subscriptions. I have logic built in that sends a user straight to checkout once they’ve added a subscription from the front page.
However, I’m trying to dummy-proof this and make sure a user doesn’t return to the home page, add the same product again, and return to checkout.
Is there a way I can write the following logic:
“If there is an item in the cart, don’t allow the user to add a second item, just redirect them to the checkout page if the click on add to cart again.”
Any help would be greatly appreciated.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woo Commerce Add to Cart Straight to Checkout’ is closed to new replies.