Support » Plugin: WooCommerce » Override template files not working?

  • I’m having issues overriding the template files. I have saved the file to themename/woocommerce/woocommerce-template.php and I also tried themename/woocommerce/template/woocommerce-template.php

    Both don’t seem to work. I also just tried dumping woocommerce-template.php directly in my template folder and that also doesn’t work. I really need the overrides to work or else it will be a big problem.

    Has anyone managed to fix this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • the files under the template folder go in your woocommerce folder

    What do you mean? Doesn’t that mean all of my template files will be overridden with the next woocommerce update?

    Does that mean I’m supposed to put all my template files in the official woocommerce folder?

    this is what Bryan is talking about.

    Copy the folder plugins/woocommerce/templates to themes/your_theme_folder/ and rename it as woocommerce.

    The folder structure should be like this:

    ├─ woocommerce
    │ ├─ woocommerce_template_files.php
    ├─ your_theme_files.php

    this way, any modifications you made to the woocommerce templates will not be overriden by woocommerce plugin updates.

    Thanks for your help, I’ve tried this but it still doesn’t seem to work. I need to edit the woocommerce-template.php file which is outside of the woocommerce/templates folder.

    I’ve also tried copying the whole woocommerce folder and putting that in my theme folder but it still doesn’t work.

    have you tried overriding it via your theme’s functions.php?

    I did most of my modifications there and not having to hack core woocommerce files..

    That worked!!! Thank you so much!

    you’re welcome!

    BTW, you can set this topic as [RESOLVED]. Thanks!


    Wait! I still having problem with this overiding.

    Thank you for sharing. I tried to use woocommerce with Ari Theme So far I managed to override the single product page, but the shop/catalog is still messy. You can see it here: If possible, I would like to put the query/all shop item (or whatever it is, 🙁 ) in the default theme container, like the single product here: so it will remain responsive. I tried copy and edit loop-shop.php into theme/woocommerce/loop-shop.php but nothing happen.

    How did you override via the theme’s functions?

    there are various action and filter hooks that woo uses – you can sometimes alter the display of things by using those hooks without dealing with the template files. It just depends on what you’re trying to change. Not everything has a filter tied to it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Override template files not working?’ is closed to new replies.