Products module template caching issue?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Utter
Forum Members
Forum Members
Posts: 41
Joined: Sun Mar 06, 2005 11:39 pm

Products module template caching issue?

Post by Utter »

I am building a bookshop using CMS1.10.2 with Products 2.15.1. I defined a checkbox Custom Field (preordered) to denote that a particular book is currently only available for pre-order and I altered the Prod detail template so that if the field was 'true' a block of text explaining about pre-ordering was displayed and the call to the Cart module pulled in a different template with a 'Pre-order' button instead of 'Add to cart'.

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}
to the detail template outputs the content of the ComDir template but suppresses the display of several other Product fields even when it only contains a text string.

Thanks in advance for any help offered.
Post Reply

Return to “Modules/Add-Ons”