Support » Plugin: WooCommerce Better Usability » Remove product checkout page goes to homepage

  • Resolved seekstheme

    (@seekstheme)


    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.

    Thanks for any help you might be able to give me!

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

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

    (@moiseh)

    Hello Sir,

    I’ve checked here and this plugin uses default woocommerce function to create the delete link: wc_get_cart_remove_url() – File located at woo-better-usability/templates/checkout-product.php

    And also this plugin doesn’t change any callback that makes this strange redirection, i think it comes from woocommerce or other custom theme / plugin modification.

    You can find if something in your wp-content folder was modifying this filter: woocommerce_get_remove_url

    function wc_get_cart_remove_url( $cart_item_key ) {
    	$cart_page_url = wc_get_page_permalink( 'cart' );
    	return apply_filters( 'woocommerce_get_remove_url', $cart_page_url ? wp_nonce_url( add_query_arg( 'remove_item', $cart_item_key, $cart_page_url ), 'woocommerce-cart' ) : '' );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Remove product checkout page goes to homepage’ is closed to new replies.