Forum

Thread tagged as: Question, Shop

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'
          ]);

        ?>
Dan Lee

Dan Lee 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Dan Lee

Dan Lee 1 points

Thanks Drew!