Tagged: php, updates, woocommerce
-
AuthorPosts
-
February 16, 2016 at 11:32 pm #584403
Some time ago, you kindly showed me how to alter the button coding for the ‘Return To Shop’ button.
However, after updating Woocommerce since then, it has disappeared. I really don’t want to have to repeat the coding each time I update (because I’ll forget!).
So, is there a way of ensuring that the new coding for Woocommerce is maintained throughout future updates? The changes were originally applied to wp-content > plugins > woocommerce > templates > cart > cart-empty.php.
Thanks!
February 18, 2016 at 5:49 am #585150Hi nigdowser,
I think it should work overriding the files by adding the file structure and file to your child theme, this might help you on your way: https://v4.datafeedr.com/documentation/580, if not then please link to the old topic and we’ll have a closer look.
Best regards,
RikardFebruary 18, 2016 at 6:27 pm #585558Thanks. I’ll be able to get to this tomorrow, I hope. If I have issues with it, I’ll come back to you.
February 19, 2016 at 8:19 am #585903Hi,
Ok great, we’ll keep the thread open in case you should have any problems.
Regards,
RikardFebruary 25, 2016 at 11:03 pm #589509Sorry for the delay.
Finally got round to trying this out on a staging site.
I installed and activated the child theme, then followed the directions for the coding but it doesn’t work. Looking at the Woocommerce documentation, I tried altering the file path, ignoring the ‘template’ subdirectory, but still no luck.
This worked for me when I directly altered the original file, but I must have done something different this time, because it is not redirecting properly to the new store url.I’ve tried wp-content/themes/enfold-child/woocommerce/cart/cart-empty.php
and wp-content/themes/enfold-child/woocommerce/templates/cart/cart-empty.php and, in both cases, copied and pasted the url I want in the appropriate location in that file.As it’s a staged site, the url is different to the original coding, and that’s the only thing which I can think of as being different.
What else could I be missing?
Any help or suggestions gratefully received!March 2, 2016 at 3:04 pm #592081Hey!
Sorry for the delay.
We are working on your ticket please wait while we update the results here soon.To customize the “Return to shop” button link
1. Activate child theme from Appearance > themes> enfold child
2. Copy paste everything in this link to http://pastebin.com/raw/9TQ3u9cR to
enfold-child\woocommerce\cart\cart-empty.phpI noticed you already tried this.
Make sure you are using latest version of enfold and woocommerce and the enfold child theme is active.
Try with the code provided in the link and let us know if it re-directs to google.com when you click “Return to shop” button
Change “http://google.com” in the last line to your shop page.If the above is done correctly it will work 100% :)
Regards,
Vinay Kashyap- This reply was modified 8 years, 9 months ago by Vinay.
-
AuthorPosts
- You must be logged in to reply to this topic.