I'm trying to plus and multiply three values in my template file but smarty is messing with me
{assign var="x" value="`$smarty.get.pageID * $perPage`"}
{$x + $smarty.section.co.index_next}
How can I do that?!
I'm trying to plus and multiply three values in my template file but smarty is messing with me
{assign var="x" value="`$smarty.get.pageID * $perPage`"}
{$x + $smarty.section.co.index_next}
How can I do that?!
sorry that was a silly question i solve it like this :
{if $smarty.get.pageID ne 1 }
{assign var="x" value=$smarty.get.pageID}
{math equation="(( x * y ) + z )" x=$x y=$perPage z=$smarty.section.co.index_next}
{else}
{$smarty.section.co.index_next}
{/if}