Saving php file for WooCommerce single product

Hello there,

Trying to reorder the single product page via PHP per the instructions here: Woocommerce: Moving meta info above price

Is there a way to save this php file in my X Child Theme so that it doesn’t get overwritten in a WooCommerce update? Is it possible to save php files for other plugins in X Child so that they don’t get overwritten in a plugin update?

Website: https://soundcontrolte.wpengine.com/product/rc6-cst-for-cisco/
Trying to move variation description below add to cart button.

Thanks!

Hello @IPProduction,

Thanks for writing in! Yes, you can save PHP files in the child theme. As a matter of fact, you will be needing the child theme so that all of your template modifications and customization will not be overwritten when there are theme and plugin updates. To modify the WooCommerce plugin templates, please check out this documentation for added information:

Just to manage your expectations, this isn’t specifically a theme issue, but rather, your customisation of it. So whilst I have happily provided you with some guidance above on how to get it working, we are unable to provide support for customizations under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One or Care service for further assistance.

Best Regards.

Thanks so much! Does the same apply for other plugins? Or is this just for WooCommerce?

Hello @IPProduction,

You are welcome @IPProduction. It depends upon the plugin, some of the plugins provide an action hook and some of them provide the template for customization. It is always a good practice to check the developer documentation before customizing any plugin or themes.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.