Jump to content

Category and SubCategory


Guest Ankush Dawar

Recommended Posts

Do you mean you want to replace the default image with one of your own, for the categories?

If you do, you can do this by going to View Categories in Admin Panel. Click Edit then Browse/Upload Image and select your own image.

To remove the numbers, in brackets, of products available in a category you need to edit YOUR_SKIN/styleTemplates/content/viewCat.tpl. Find this...

<!-- BEGIN: sub_cats_loop -->

<div class="subCat"><a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" title="{TXT_CATEGORY}"><img src="{IMG_CATEGORY}" alt="{TXT_CATEGORY}" border="0" /></a><br />

<a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" title="{TXT_CATEGORY}">{TXT_CATEGORY}</a> ({NO_PRODUCTS})</div>

<!-- END: sub_cats_loop -->


Remove ({NO_PRODUCTS}) next to the last closing div. It should look like this...


<!-- BEGIN: sub_cats_loop -->

<div class="subCat"><a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" title="{TXT_CATEGORY}"><img src="{IMG_CATEGORY}" alt="{TXT_CATEGORY}" border="0" /></a><br />

<a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" title="{TXT_CATEGORY}">{TXT_CATEGORY}</a></div>

<!-- END: sub_cats_loop -->

Lee

Link to comment
Share on other sites

Guest Ankush Dawar

Thanks Lee ..

It worked, but by mistake your it should look like code has no products, that needs to removed.

Please fix the post for future users.

Thanks.

Ankush

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...