• Resolved tomenr

    (@tomenr)


    In My Account > Order I would like to change the button “Cancel” action. Instead cancelling the order I need a link where the customer will be redirect in order to fill in a form and send it to us.

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

Viewing 1 replies (of 1 total)
  • Plugin Support Kader Ibrahim S. a11n

    (@kaderibrahim)

    Hello @tomenr,

    Thank you for reaching out to WooCommerce support. You can override the cancel order URL by using the woocommerce_get_cancel_order_url filter. Here is an example:

    add_filter( 'woocommerce_get_cancel_order_url', 'wc_child_override_cancel_order_url' );
    
    function wc_child_override_cancel_order_url() {
    	return 'https://google.com/';
    }

    If added to your child theme’s functions.php file, the above code will replace the cancel order URL to https://google.com.

    Hope this helps. Please do not hesitate to reach us for further help or have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘My Account > Order’ is closed to new replies.