Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 8th, 2014, 10:28 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default display in () how many items in category and sub category

Is there a way to display in ( )'s next to each category and each sub category how many items total are in the respective category? Like they do here. http://www.pricegrabber.com/sporting...-bags/p-1647/#
  #2  
Old April 8th, 2014, 11:28 AM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

You can use the following shortcode in your categories widget view WIDGETS > Categories > Category list > :

[category.pc] = current category's product count
  #3  
Old April 8th, 2014, 02:23 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

Could you show me exactly how to place it? here is the code I have now.

[category.list before='<ul>' after='</ul>']

[category.if active="self"]
<li class="active">
[category.name]
[category.repeat]
</li>
[/category.if]

[category.if active="child"]
<li>
<a href="[category.link]" title="[category.name]">[category.name]</a>
[category.repeat]
</li>
[/category.if]

[category.if active="parent"]
<li>
<a href="[category.link]" title="[category.name]">[category.name]</a>
</li>
[/category.if]

[category.if active="no"]
<li>
<a href="[category.link]" title="[category.name]">[category.name]</a>
</li>
[/category.if]

[/category.list]
  #4  
Old April 8th, 2014, 03:59 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

Just add [category.pc] after each </a> tag like this

<a href="[category.link]" title="[category.name]">[category.name]</a> ([category.pc])
  #5  
Old April 8th, 2014, 04:25 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

ok that worked ok but....

can I get it to show JUST the sub categories? As you can see on my homepage I don't have anything in the main categories. http://saveongolf.net .

looks good though!
  #6  
Old April 8th, 2014, 04:43 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

Quote:
Originally Posted by yankeestonk View Post
can I get it to show JUST the sub categories? As you can see on my homepage I don't have anything in the main categories. http://saveongolf.net .
In that case just add [category.pc] in the [category.if active="parent"] section.
  #7  
Old April 8th, 2014, 04:48 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

you mean child right? I don't want it on the parent I believe.

forget above!...

check this out and let me know if there is a fix. http://saveongolf.net . In the categories go to "golf bags". When that opens there will be 3 sub categories that show (0) then when you click it shows how many of each brand. How can I get that (0) to show the sum of the childs below it...or....not show the (0) at all but still have the sub child show the numbers?

i have the same issue on the "hot list" categories up top too.

Thanks,
ken

Last edited by yankeestonk : April 8th, 2014 at 05:00 PM. Reason: new info.
  #8  
Old April 8th, 2014, 06:14 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

meant to say "Could you....", didn't mean to sound bossy!
  #9  
Old April 8th, 2014, 06:23 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

Instead of [category.pc] try [category.pct]

[category.pct] = current category's product count + all sub-categories product count.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show sub category items in top level category balkon_oase Questions 2 March 11th, 2013 04:58 AM
Display category title on Category Page Michaelgs Questions 1 July 20th, 2012 09:02 PM
Category drop down & sales items vonspurter Questions 8 January 17th, 2012 02:32 PM
Display sub-category images on category pages Eric Tips, Tricks & Tutorials 2 August 6th, 2011 11:47 AM
When searching, highlight items already added to category patagonia Feature Requests 0 January 12th, 2011 09:33 PM


All times are GMT -5. The time now is 08:16 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.