• 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!

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Would this do it: on the product page, Product Data section, Inventory tab, check “Sold individually”. The customer can buy only one in a single order.

    Thread Starter JRiley21

    (@jriley21)

    @lorro,

    Thanks! I actually tried that, and in theory, it works. However, since it won’t allow more than one quantity in the cart, if a user does click to add another product, it breaks the ‘direct to checkout’ function and just refreshes the page instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woo Commerce Add to Cart Straight to Checkout’ is closed to new replies.