Forum
Template file missing
Hi
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.
SUMMARY INFORMATION
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_LOGINPATH: /perch
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
I think you need
Leave the template
membership.html
file inproducts
that is the right place for itThanks Mike
Didn't think to try that, simple really. Monday brain.