Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #503101

    If your cart is empty here is a ‘Return To Shop’ button, but it is taking me to a different page than what it have set our shop under.

    How do i edit the link to point to the new page?

    Cheers and thanks

    Mark

    #503240

    Hi montyburns!

    Please add following code to Functions.php file in Appearance > Editor

    function wc_empty_cart_redirect_url() {
    	return 'http://yourdomain.com/your-page/';
    }
    add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );

    Regards,
    Yigit

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