Hello,
We're working on a small shop, where on the category page we'd like output the products in blocks of nine, with the possibility to click through to the next nine. I've got the script for doing that, but I'm not sure how I'd split the array in the product_listing module apart.
We'd like to wrap a DIV around every nine products. Say we've got 20 products on a page, we'd like to end up with a structure like this:
Code:
<div class="ourblock">
Products 1-9
</div>
<div class="ourblock">
Products 10-18
</div>
<div class="ourblock">
Products 19-20
</div>
I can see in the file where it loops through the products, but I'm not sure how I'd check for nine products and wrap a DIV around them, then move on to the next lot.. would be great if someone could offer some coding insight on this!
Thanks, Karl
Bookmarks