• Resolved admif22

    (@admif22)


    Hey the plugin is great, works just as expected. However having a little issue, once I remove a product from the checkout page it takes me to the homepage instead of just refreshing where it is.

    Please help!

    • This topic was modified 3 years, 6 months ago by admif22.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,

    I don’t find out what may causing the issue.

    You can check at the template inside my plugin:
    templates/checkout-product-remove.php

    It’s calling that function from woocommerce: wc_get_cart_remove_url()

    If it helps:

    You can use this WC filter to modify the url when inside checkout page: woocommerce_get_remove_url

    Or, override the template of my plugin like this and change the URL:

    
    add_filter('wbu_get_template', function($located){
        if ( basename($located) == 'checkout-product-remove.php' ) {
            $located = __DIR__ . '/checkout-product-remove-override.php';
        }
        return $located;
    });
    
Viewing 1 replies (of 1 total)
  • The topic ‘Removing from cart takes me to error URL’ is closed to new replies.