RETURN TO SHOP BUTTON IN COMPARE PAGE
-
Dear,
In the compare page, we have a button “return to shop” that redirects to the shop.
Instead, I’d like to redirect to home. How can I do that?
Thanks
Hello,
No, there is no option to do that. It is Woocommerce functionality our theme does not influence.
Best Rega
Ok can you at least tell me the following. I need to design this code in PHP Function but I need to know how you target the “empty compare” for this function. Can you tell me what it is?
I have already the code for the empty cart, and now I wanna do the same for the empty compare. So what is your shortcode for the empty compare ?
Thanks
You can find the code for this button in the file woodmart/inc/integrations/woocommerce/modules/compare.php
.
Regards
Great!
Where could I also find the documentation for the button “return to shop” in the theme cart sidebar?
Thanks
Hi,
I’ve found the easy way, no need for code.. On WooCommerce settings, change the target shop page to home.
Problem solved.
Thanks
Actually no, it’s not suitable solution what I found.
So I still need the documentation of the function related to the button “return to shop” in empty sidebar cart.
Thanks
This button code is located in the file wp-content/plugins/woocommerce/templates/cart/cart-empty.php
.
Regards
Please close this ticket, thanks
The topic ‘RETURN TO SHOP BUTTON IN COMPARE PAGE’ is closed to new replies.