Theme is blocking chekout redirect when using WooCommerce Direct Checkout

This topic has 8 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler

  • Avatar: jobo9967
    jobo9967
    Participant
    April 19, 2018 at 21:46

    Actually it’s not allowing any plugin that does it to redirect.
    I laso tried adding filters to functions.php with no luck
    Wasted whole day creating staging site, disabling plugins etc
    I changed the theme at the very end
    And guess what?
    It worked
    :/

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 20, 2018 at 08:58

    Hello,

    Please, provide temporary Dashboard and FTP access to site where we’ll be able to check the problem. At this moment both sites that you provided use XStore, we can’t check.

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    April 20, 2018 at 09:51

    Check the private content

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 20, 2018 at 15:54

    Hello,

    You have not provided FTP access. Please, add this info. Also, can you contact plugin author and ask if they use any WooCommerce hook to add the redirect. Let me know their reply.

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    April 20, 2018 at 16:15

    this filter didn’t work either
    I tried couple varsions of it
    I tried different plugin
    nothing worked
    I will ask the developer of the plugin but this will take ages to get back from him
    It’s free plugin

    /**
    * Add to cart redirect to checkout.
    *
    * @param string $url
    * @return string
    */
    function my_wc_add_to_cart_redirect_to_checkout( $url ) {
    return wc_get_checkout_url();
    }
    add_filter( ‘woocommerce_add_to_cart_redirect’, ‘my_wc_add_to_cart_redirect_to_checkout’ );

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 23, 2018 at 08:22

    Hello,

    We’ve disabled “Ajax add to cart” option https://prnt.sc/j8uso6 on the staging site. Please check the redirect now.

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    April 23, 2018 at 08:44

    that works
    thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 23, 2018 at 08:49

    You’re welcome!
    Have a nice day.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 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.