Problem overriding Woocommerce file with plugin
-
Hello, I am trying to create a plugin that will override a couple of Woocommerce files, those files being:
“plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js”
and
“plugins/woocommerce/templates/single-product/add-to-cart/variable.php”
So I know I can dequeue the JS and enqueue my own version, however I am having trouble overriding the variable.php file
Here is a link to my plug-ins function file: Click Here
Most of the work is done, I just need a way to over ride the variable.php and add-to-cart-variation.min.js files with what I have located in the plugin folder..
{Let me mention this is my first attempt at a plugin so be gentle)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem overriding Woocommerce file with plugin’ is closed to new replies.