Redirect to Checkout after Add-To-Cart - by marceluyannick

This topic has 5 replies, 2 voices, and was last updated 5 years, 3 months ago ago by Olga Barlow

  • Avatar: marceluyannick
    marceluyannick
    Participant
    September 12, 2019 at 21:17

    Hey,

    I googled some code snippets for a redirect to the checkout after the add-to-cart click but they didn’t work. So I guess the theme has some own handling for it? Any code for me to use in the functions.php to make it happen`?

    4 Answers
    Avatar: marceluyannick
    marceluyannick
    Participant
    September 12, 2019 at 21:29

    Forgot to say we are using babyland theme. And it seems the “add-to-cart” button stays ajax no matter what we switch on or off. On a single product page the redirect will work. Is the button changeable ?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 12, 2019 at 22:28

    Hello,

    You can disable the Ajax add to cart on the single product page in Theme Options > Single Product. Neither our theme or WooCommerce have option to redirect to checkout but there is option to redirect to cart, go to WooCommerce > Settings > Products http://prntscr.com/p5eko7

    Regards

    Avatar: marceluyannick
    marceluyannick
    Participant
    September 13, 2019 at 12:35

    Hello,

    yeah I know I can disable it on a single cart page but the problem is that the button you have on your theme used in the “shop pages” is an ajax one who does not respond to this option. It’s a fixed “slider swiper”-whatever button…

    Also it’s just for simple products we use variable products

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 13, 2019 at 15:43

    Hello,

    WooCommerce has option to disable the Ajax add to cart on the shop page http://prntscr.com/p5pwh2 but WPBakery plugin affects this option and does not allow to disable Ajax no matter is option is enabled or disabled. Somebody reported about this long time ago https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments?page=807&filter=all#comment_16729393 but looks that have not fixed this yet. We contacted them again to get fix. I’ll inform you once we get any helpful answer. So, it’s not our theme issue but WPBakery plugin bug.

    Regards

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

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

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