I've just learnt some basic php and I'm trying to make my new v8 layout with featured products in 3 columns at the top of the page above the rest of the products. Pretty much like our v7 site here for example: http://www.ukbikestore.co.uk/acatalo...BIKES_153.html
Norman gave me some advice in another thread about how to do it and I've decided to use one product template for the listed products, and a different one for the featured ones at the top (which will be product duplicates).
The list layout settings for the template have had the row and column parts removed and instead they are put into the beginning and end of the product template.
the featured products now need code in them to start a new row if they are the first product, and end that row if they are the third. i have come up with this but it comes up with parse errors:
I've messed around with it lots and now my head hurts! Anyone see any reason why this shouldnt work?
Thanks
Dave
Norman gave me some advice in another thread about how to do it and I've decided to use one product template for the listed products, and a different one for the featured ones at the top (which will be product duplicates).
The list layout settings for the template have had the row and column parts removed and instead they are put into the beginning and end of the product template.
the featured products now need code in them to start a new row if they are the first product, and end that row if they are the third. i have come up with this but it comes up with parse errors:
Code:
<actinic:block php="true" > $colnum = "0"; $colnum++; if ($colnum = "1") echo "<tr>"; </actinic:block> <td> REST OF PRODUCT TEMPLATE </td> <actinic:block php="true" > if ($colnum = "3") echo "</tr>"; $colnum = "0"; </actinic:block>
Thanks
Dave
Comment