php – Load specific WooCommerce template within theme-ThrowExceptions

Exception or error:

I have a custom page template within my theme, I’m trying to display just the product summary on this page.

So that when this page template is loaded, it loads with the products summary and nothing else.

So far I’m loading the whole product single template and using css to hide the other elements;

load_template(WP_PLUGIN_DIR.'/woocommerce/templates/single-product.php');

This isn’t ideal as you load the other elements, however, it seems to call its own footer.php, therefore my footer doesn’t load.

I do not wish to override WooCommerce templates for this!

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *