Jump to content

How to disable the category showing how many are in it from the homepa


Guest h2ku

Recommended Posts

Hello!

I was wondering if there was a possible way of geting rid of the category showing how many products are in it?

I would prefer the category just showing the category name?

Possible?

I've seen other cubecart shops like the way I want: www.tjtuning.co.uk On the left hand side where it says Shop By Category, then all of the Categories are listed, but there are no numbers beside it like for example, Aprilia doesnt show how many are there?

Thanks

Link to comment
Share on other sites

Guest estelle

Look in skins/YOUR_SKIN/styleTemplates/boxes/categories.tpl

FIND this line:

					<a href="index.php?_a=viewCat&amp;catId={DATA.cat_id}">{DATA.cat_name} ({DATA.noProducts})</a>


Carefully remove this code from the line:


({DATA.noProducts})




Also within skins/YOUR_SKIN/styleTemplates/content/viewCat.tpl



FIND this line:


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


Carefully remove this code from the line:


({NO_PRODUCTS})

Link to comment
Share on other sites

Guest jvalen

Look in skins/YOUR_SKIN/styleTemplates/boxes/categories.tpl

FIND this line:

					<a href="index.php?_a=viewCat&amp;catId={DATA.cat_id}">{DATA.cat_name} ({DATA.noProducts})</a>


Carefully remove this code from the line:


({DATA.noProducts})




Also within skins/YOUR_SKIN/styleTemplates/content/viewCat.tpl



FIND this line:


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


Carefully remove this code from the line:


({NO_PRODUCTS})

I've tried this but the amount of products in the category is still showing up. Did this work for anyone else?

Link to comment
Share on other sites

  • 1 month later...

The changes took about an hour to take affect for me on CC4.2 after I uploaded the revised files. So the above instructions did work, it just didn't take effect immediately for some reason.

All my quantities were displaying an incorrect count, so I definitely wanted to figure out how to remove it. E.G. I have three items in a category and it shows a quantity of 6 in the 'Shop By Category' sidebar. (And in the backend control panel on the 'View Categories' screen it says I have a quanity of 4.) :)

I've only played with CubeCart a few weeks, but in my opinion- with all the little problems and inadequacies of CC4- I think they should not charge for the software and just accept donations. Especially since anyone who wants a modern-looking, professional ecommerce site is going to have to spend additional money on mods and skins when using CubeCart.

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...