You must be logged in to reply to this topic. Click here to login or register
Home › Forums › Skincare – Cosmetics WooCommerce WordPress Theme › Change 'Return to shop' button – now error occured
Hi!
I wanted to change to URL of the ‘ Return to shop ‘ Button.
I used this code to change it – in Function PHP – and now I get an error.
The code I used:
/**
* Changes the redirect URL for the Return To Shop button in the cart.
*
* @return string
*/
function wc_empty_cart_redirect_url() {
return ‘http://vitamom.nl/product-category/vpc/’;
}
add_filter( ‘woocommerce_return_to_shop_redirect’, ‘wc_empty_cart_redirect_url’ );
What I now see is: (see printscreen attached).
How can I undo this?
Thank you!
You must be logged in to reply to this topic. Click here to login or register