Support » Plugin: WooCommerce » Woocommerce Update and manually copied woocommerce files in child theme folder

  • Resolved mappel

    (@mappel)


    Hi.
    My shop is four month old and it’s the first time I’m considering a woocoommerce update.
    Normally I do my woocommerce edits with hooks and filters.
    But I also have a bunch of php files where I’ve edited small things and that I’ve put into my child theme folder.
    My question is:
    1) Can I see in your changelog if you changed something let’s say in the cart.php (for example) file? So I can revisit cart.php, copy it into my child theme folder and make the edits.
    2) Or is it best practise to copy all the relevant edited files from the new woo version into my child theme folder and make the edits? Is there a way to save time and skip the files that weren’t touch with the newest updates?
    Thanks for helping me out.
    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • ah, I recognized, that every template php file has a version number (@version).
    let’s say, I’ve copied and edited the thankyou.php file into my child theme woocommerce folder. Now I’m doing the woo update. Can I check the version and see: well, it’s the same version number, I dont’ have to copy and edit the thankyou.php file from the updated woocommerce folder into my child theme folder?
    If the thankyou.php file from woocommerce 3.6.2 has the same version number ( @version 3.2.0) than the file from the older woocommerce version, is it save to do nothing? I don’t have to revisit that file?

    Woocommerce is going to remind you with a notice when your customized versions of template files become outdated (and point at the exact files).

    Also you can just change the verison numer in your override template files.
    Follow the instruction on how to update outdated templates here
    https://docs.woocommerce.com/document/fix-outdated-templates-woocommerce/

    Also you should update WooCommerce via WP CLI.
    You run updates etc via the command line. This is way more effective and much faster than doing updates through the back end

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce Update and manually copied woocommerce files in child theme folder’ is closed to new replies.