• Resolved neelam_khan

    (@neelam_khan)


    Hi,

    I am trying to over ride the variable.php file in the woocommerce plugin from the file and I have copied the file structure as it is in the woocommerce directory but it is not working.

    Woocommerce is ignoring my file and using its default one.

    Can anyone help with this?

Viewing 1 replies (of 1 total)
  • Thread Starter neelam_khan

    (@neelam_khan)

    Just double checked my file structure and it was wrong, having read the documentation on Woocommerce page (again) I found that it needs to be like this >

    themes/your-theme/woocommerce/single-product/add-to-cart/variable.php

    NOT

    themes/your-theme/woocommerce/templates/single-product/add-to-cart/variable.php

    I copied the file structure exactly like it is within the woocommerce directory and it seems all I had to do was omit the templates folder.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Woocommerce] Unable to over-ride template files’ is closed to new replies.