• Resolved pageinsights

    (@pageinsights)


    Hello,

    i can find the option in the?WooCommerce?->?Settings?-> click on the?Products?tab.

    When the option “Redirect to the cart page after successful addition” is checked, it will redirect all users to the cart after adding a product to the cart. If unchecked, the page will not get redirected.

    This not working for me if i have your plugin active.

    How to force with code to redirect to cart?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pageinsights

    (@pageinsights)

    add_filter( ‘woocommerce_add_to_cart_redirect’, ‘redirect_to_cart_with_funnelkit’ );

    function redirect_to_cart_with_funnelkit() {
    return wc_get_cart_url(); // Redirects to the cart page
    }

    Is code above ok?

    Plugin Author Team FunnelKit (formerly WooFunnels)

    (@teamwoofunnels)

    Hi @pageinsights,

    Thanks for your query and for reaching out to us.

    When the option “Redirect to the cart page after successful addition” is checked, it will redirect all users to the cart after adding a product to the cart. If unchecked, the page will not get redirected.
    # Yes, using the funnelkit Cart, this option does not work and overridden by the Funnelkit Cart to show the Sliding Cart instead of redirect to the checkout page.

    We request you to add this code snippet to your site to show a button to access the cart page (if needed)
    https://i.imgur.com/X4MKBoD.png

    Copy the code from here https://gist.github.com/xlplugins/8acf60677b869fc377eadc02202c396d and add to your theme’s functions.php file or use a custom code snippet plugin

    Let us know if anything else.

    Thanks
    Team Funnelkit

    Hi @pageinsights,

    Marking this as resolved.

    Feel free to create a new thread for any other query.

    Thanks
    Team Funnelkit

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.