Redirect to Checkout after adding specific product to cart.

This topic has 4 replies, 3 voices, and was last updated 7 years, 11 months ago ago by Eva Kemp

  • Avatar: JarekN
    JarekN
    Participant
    December 6, 2016 at 22:29

    After a product is added to the cart, a message is displayed giving you option to Continue Shopping or to go to Checkout. I’d like it to automatically go to checkout when specific product is ordered. Can you provide me with code that I could add to the functions.php that would do this?

    Thanks!

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 7, 2016 at 08:16

    Hello,

    Try go to Dashboard > Woocommerce > Settings > Products > Display > ‘Add to cart behaviour’ and enable ‘Redirect to the cart page after successful addition’ checkbox.
    After that navigate to Theme options > ‘Single product page’ and disable Ajax ‘Add to cart’.

    Regards,
    Rose Tyler.

    Avatar: JarekN
    JarekN
    Participant
    December 8, 2016 at 05:20

    That will do so for all products, but I only want to do the redirection for specific product 🙂

    Avatar: Eva
    Eva Kemp
    Support staff
    December 8, 2016 at 22:38

    Hello,

    Sorry, but there is no such feature in the theme.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.