"look ahead" in a section loop
Not sure if this is possible with smarty but thought I would ask
I am displaying products in 3 columns sorted by manufacture.
I would like to place the product manufacture name at the beginning of each "section" of manufactures ASCII excample below
manufacture1---------
prod1 prod2 prod3
prod4 prod5
manufacture2---------
prod6 prod7 prod8
prod9
manufacture3---------
prod10
With lots of help from pmstudios the manufacture info for each product is displaying and the products are sorted in the correct order
My thought was to do something like
if product manufactureID is not equal to product_next manufactureID
output manufacture name
My question is in
{section name=product loop=$products}
can I "look ahead" to the next product in the loop to compare to the current product's manufacturer id?
Thanks!
__________________
animator for hire
onthez.com
------------------------
x-cart v4.0.5 Linux
_________________
|