We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Error, Addons, Shop

Template file missing


I'm trying to feed in a single product to a page using;

<?php perch_shop_product('lifetime-membership-eurmed01', [
    'template' => 'membership.html'

But nothings showing... perch_shop_product('lifetime-membership-eurmed01') works with the default template. Looking at debug, I'm getting;

Template file not found: /Volumes/FFD Web Work/EuroMed/root/perch/addons/apps/perch_shop/templates/shop/membership.html

There is a membership.html in perch/templates/shop/products/ - Which is where I thought it should go? But the debug isn't looking in the products folder, its looking in the shop folder... plus its defaulting back to the templates in the app folder.


Perch: 2.8.29, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_shop_orders (1.0.3), perch_shop_products (1.0.3), perch_shop (1.0.3), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', 'perch_shop', );
PERCH_PATH: /Volumes/FFD Web Work/Euro Med/root/perch
PERCH_CORE: /Volumes/FFD Web Work/Euro Med/root/perch/core
PERCH_RESFILEPATH: /Volumes/FFD Web Work/Euro Med/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: euromed
DOCUMENT_ROOT: /Volumes/FFD Web Work/Euro Med/root
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Wayne Hooper

Wayne Hooper 6 points

  • 4 years ago

I think you need

<?php perch_shop_product('lifetime-membership-eurmed01', [
    'template' => 'products/membership.html'

Leave the template membership.html file in products that is the right place for it

Thanks Mike

Didn't think to try that, simple really. Monday brain.