How to get defined template for single product based on ID/SKU
-
Hi i need to have some help from us.
I have created some file copyed from single-product.php and rename it with the slug of the product so an example:
single-product-PRODUCTNAME1.php
single-product-PRODUCTNAME2.php
ecc..I need to override the default template of single product with that file
NAME1—->single-product-PRODUCTNAME1.php (template)
NAME2—->single-product-PRODUCTNAME2.php (template)I have made the exactly things for category and its work (using custom-taxonomy.php) but i don’t know what php code to use for single product to override some part of the layout.
I just need to add a slider shortcode for specific productsThanks in advance for your help
Cheers
- The topic ‘How to get defined template for single product based on ID/SKU’ is closed to new replies.