Forum
Shop template location...
Hi, I was wondering if templates are handled a little differently in shop... When I use:
<?php perch_shop_products([
'template' => 'custom_list.html',
'count' => 10,
]); ?>
debug returns:
Template file not found: /sitedierectory/perch/templates/shop/custom_list.html
Should it not be looking here?
/sitedierectory/perch/addons/apps/perch_shop/templates/shop/products/custom_list.html
also, does that function support category filtering?
Hi,
You will need to copy the templates to your templates folder. This is from the docs:
Then you would probably want to put the custom template here:
And call it like this:
perch_shop_products
does support category filtering, I am using it on a shop at the momentHope this helps
Thanks, Michael, I'm not sure that's it as I do have the template files copied over.
And thanks, I must be doing something wrong on the categories. I'll keep at it!
Hmm that's odd then - I would check the template is in
products
as a first step. And make sure/products
is in the path you specify for the template. Good luck!P.S. My category filter thingummy looks like this:
I would expect you to need to use
Thanks you guys! Back on track!