i getting following error when call ajax function
smartycompilerexception: syntax error in template "themes/themename/ajax-product-sort.tpl" on line 16 "<option value="{$link->addsortdetails($request, 'price', 'asc')|escape:'htmlall':'utf-8'}" {if $orderby eq 'price' , $orderway eq 'asc' }selected="selected"{/if>l} {s='price: lowest first'}</option>" - unexpected " }" in d:\wamp\www\sitename\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 431
and cand find syntax mistake on particular line
<option value="{$link->addsortdetails($request, 'price', 'asc')|escape:'htmlall':'utf-8'}" {if $orderby eq 'price' , $orderway eq 'asc' }selected="selected"{/if}>{l s='price: lowest first'}</option>
in smarty address objects , arrays ".", not "->".
so try
{$link.addsortdetails($request, 'price', 'asc')|escape:'htmlall':'utf-8'}
Comments
Post a Comment