Tagged: woocommerce
Using Woocommerce, we set up our own page for the main shop page rather than using the default one. It works nicely, but we’ve come across a problem.
If someone empties their cart, they get shown a ‘Return to Shop’ button. However, as we have removed the default page from the woocommerce settings, this button now does nothing at all.
Is there some coding you can suggest which will allow this button to direct to the new storefront page which we have created? I can’t think of what to apply or where to apply it, so would really like a pointer or two if possible.
Many thanks!
Hi nigdowser,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Thanks,
Rikard
Thanks: Details as requested
Hey!
You should open your WordPress installation directory, go to wp-content > plugins > woocommerce > templates > cart > cart-empty.php and find the following code in line 22:
Best regards,
Dake
Excellent! Thank you!