Tagged: woocommerce
Help!
For some reason, the “Return to shop” button, in an empty cart woocommerce page, does not display
Thanks for you time guys!
Hey Phet,
It’s displaying fine on my end using Chrome, how can we reproduce the problem?
Best regards,
Rikard
Hey Rikard,
I had to add this piece of code into my child theme’s functions.php :
//add back to store button in empty cart
add_action('woocommerce_cart_is_empty', 'manual_back_to_store_cart_empty');
function manual_back_to_store_cart_empty() { ?>
<a class="button wc-backward" href="/boutique"><?php _e( 'Return to shop', 'woocommerce' ) ?></a>
<?php
}
For some reason, it was not integrating it with out it…
Thanks,
Phet
Hi Phet,
I have not heard about that happening before, but I’m glad you found a solution and thanks a lot for sharing. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
We can close this topic.
Thanks Rikard,
Phet
Hi Phet,
Please feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day :)
Best regards,
Nikko