Editing a WooCommerce template

I have been trying to add a custom template for the variable.php:
/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php

I added it to my child theme:
/pro-child/woocommerce/single-product/add-to-cart/variable.php

And added the theme support to functions:

function mytheme_add_woocommerce_support() {

  • add_theme_support( ‘woocommerce’ );*
    }
    add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ );

My changes aren’t being applied, but when I modify /wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php the changes come through. Am I in conflict with something in the Pro theme?

Thank you.

Hello @501creative,

Thanks for writing in! Please make sure that the Pro Child theme is active or check if you are using a custom Woo template layout. We would be happy to double check your site if we can log in. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.