The conditional calling the text block is:
Code: Select all
{if isset($entry->fields.preordered->value) == true}
<p><strong>This book is for pre-order only. Publication date {$entry->fields.pubdate->value}.</strong></p>{/if}
Originally this all worked fine. If I unchecked the box on the Product edit page the template output only the 'Add to cart' version of the Cart template and no text etc. but since the last couple of core/module upgrades unchecking the field doesn't change the output from the detail template at all.
I cleared browser and CMS caches and checked the database to ensure the flag was being set properly when the field was checked and unchecked. I added the code above to a fresh Sample template in case there was a bogus statement in my original template but nothing changes.
Because I'm certain this must be a caching issue I want to first see if anyone has either had the same issue or can give me the customary 'you're an oaf cos you forgot to do a,b and c' response before posting up the huge and complex template and config lists.
A different but possibly related issue is that I can no longer seem to call other module's templates from within Products.
Adding
Code: Select all
{CompanyDirectory action="details" detailtemplate="product_detail_authname" companyid=$entry->fields.authorref->value}
Thanks in advance for any help offered.