Hello,
In the customer/main/products.tpl I would like to be able to know what is the next product from list.
I looked up the Smarty documentation and here is what I found:
Code:
{section name=customer loop=$custid}
{$smarty.section.customer.index} id: {$custid[customer]}
{* FYI, $custid[customer.index] and $custid[customer] are identical in meaning *}
{if $custid[customer.index_next] ne $custid[customer.index]}
The customer id will change
{/if}
{/section}
I triend to implement something similar but I get an error:
Smarty plugin error: [in customer/main/products.tpl line 3]: unknown tag - '$products.[product.index_prev].productid'
Code:
{section name=product loop=$products}
{$products.[product.index_next].productid}
{$products[product].productid}
{/section}
Can someone help me with this problem.
Thanks