Forum
Pointing to new shop templates?
This might be a daft question but how do I point to a custom product template file?
I can point to the default template but when I try to point to a new template file at shop/products/ink-product.html nothing happens. What am I doing wrong?
<?php
//Default template
perch_shop_product('flexible-printed-circuit-prototype-001');
//Custom template
perch_shop_product('flexible-printed-circuit-prototype-001', [
'template' => 'ink-product.html'
]);
?>
If you have a template path wrong it should be displayed in the debug.
I think you want
products/ink-product.html
but the best way is to turn on debug and check for yourself.Thanks Drew!