mikelucid Posted September 30, 2010 Share Posted September 30, 2010 Hey,I am trying to do a simple mod to the index page of the martice template. Basically instead of showing the product list in the main section next to the categories i would like it to render this pagehttp://stretch.stretchshapes.net/1-productsof the subcategories being listed. then some featured products below.how can i make this happen?? Link to comment Share on other sites More sharing options...
mikelucid Posted September 30, 2010 Author Share Posted September 30, 2010 I have found that thhis code: {if isset($subcategories)} <!-- Subcategories --> {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {$subcategory.description|escape:'htmlall':'UTF-8'|truncate:100:'...'}getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="subcategory_link">{l s='View'} {/foreach} {/if} is the code i want to display the subcategories i am looking for. though when i put this on a .tpl fil included in my index page, it just goes blank. I am probably not understanding something to do with hooks and included files. please help a brotha out =)+) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now