Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!

    #585150

    Hi 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,
    Rikard

    #585558

    Thanks. I’ll be able to get to this tomorrow, I hope. If I have issues with it, I’ll come back to you.

    #585903

    Hi,

    Ok great, we’ll keep the thread open in case you should have any problems.

    Regards,
    Rikard

    #589509

    Sorry 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!

    #592081

    Hey!

    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.php

    I 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.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.