Guest holney Posted April 19, 2010 Share Posted April 19, 2010 Hi All On a parent category page, I'd like to show all products in that category organised into sub-categories, e.g. CLOTHING Jumpers Jumper 1 Jumper 2 Shirts Shirt 1 Shirt 2 I found a mod that does exactly what I want but unfortunately only for version 3: http://bloke.org/php/cubecart-mod-show-sub...-category-page/ In viewCat.tpl I'm using this to list my categories: <!-- BEGIN: sub_cats --> <div id="SubCategories"> <!-- BEGIN: sub_cats_loop --> <div class="subCat"> <a href="index.php?_a=viewCat&catId={TXT_LINK_CATID}" title="{TXT_CATEGORY}">{TXT_CATEGORY}</a> ({NO_PRODUCTS}) </div> <!-- END: sub_cats_loop --> </div> <br clear="all" /> <!-- END: sub_cats --> And I'm using this to show thumbnails of all my products: <!-- BEGIN: productTable --> <!-- BEGIN: products --> <a href="index.php?_a=viewProd&productId={PRODUCT_ID}" title="{TXT_TITLE}" target="_self"><img src="{SRC_PROD_THUMB}" alt="{TXT_TITLE}" border="0" class="catimage" /></a> <!-- END: products --> <!-- END: productTable --> I basically want to nest the products loop in the sub-categories loop. I tried this but nothing displayed. Is this possible? Many thanks in advance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.