[Solved]Products Module: syntax error
Posted: Thu Aug 08, 2013 6:19 am
Using 1.11.7 and up-to-date modules
I have this code in a Products Module template:
{cge_have_module m='CGEcommerceBase' assign='tmp'}
{if $tmp}
{ if isset($entry->fields.mto->value) && $entry->fields.mto->value == 'true'}
<p>Note:This item is made to order. Please add requirements in the Order Notes box when checking out.</p>
{else}
<div>
{cgecomm_form_addtocart product=$entry->id}
</div>
{/if}
{/if}
This is rendering an "unexpected closing tag {/if}" syntax error - the last one above.
If I remove it, the page loads but it shows { if isset($entry->fields.mto->value) && $entry->fields.mto->value == 'true'} on the online page above the text "Note:This item is made to order. Please add requirements in the Order Notes box when checking out."
Is this closing tag in the wrong place?
Thanks
I have this code in a Products Module template:
{cge_have_module m='CGEcommerceBase' assign='tmp'}
{if $tmp}
{ if isset($entry->fields.mto->value) && $entry->fields.mto->value == 'true'}
<p>Note:This item is made to order. Please add requirements in the Order Notes box when checking out.</p>
{else}
<div>
{cgecomm_form_addtocart product=$entry->id}
</div>
{/if}
{/if}
This is rendering an "unexpected closing tag {/if}" syntax error - the last one above.
If I remove it, the page loads but it shows { if isset($entry->fields.mto->value) && $entry->fields.mto->value == 'true'} on the online page above the text "Note:This item is made to order. Please add requirements in the Order Notes box when checking out."
Is this closing tag in the wrong place?
Thanks