Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Hide Filter Bar Results Count
Author « Topic »  

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 10/30/2017 :  03:39:35  
Each drop-down list in the Filter Bar shows the number of products corresponding to each Product Attribute, e.g. "Widgets (5000)". The count includes both in-stock and out-of-stock items.

I've configured includes.php to hide out-of-stock items but unfortunately the filters still show the counts including out-of-stock items. This is confusing for the website visitors.

Is there a way to hide the counts from the filter bar, so that each drop-list just shows the attribute names only?

André

Andy
ECT Moderator

95440 Posts

Posted - 10/30/2017 :  04:04:46  
Hi André

You can do that via the css file - add this to hide the count

div.ectpacount{display:none}

Andy

Please feel free to review / rate our software

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 10/30/2017 :  05:06:52  
Hi Andy

Thank you for the suggestion but it doesn't seem to be working.

Looking at the HTML, each option in the drop-list is of the form:

<option value="10">Widget (5000)</option>

I don't see an ectpacount class.

I'm using v6.7.



André

Andy
ECT Moderator

95440 Posts

Posted - 10/30/2017 :  05:42:39  
Very sorry, I was thinking of the side filter bar where that class is available - I can't see a way of doing that in top filter bar.

Andy

Please feel free to review / rate our software

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 10/30/2017 :  06:24:49  
Is this something you could add to a future upgrade please? Ideally:

(1) A new CSS Class for the top filter bar results counts (similar to ectpacount) and
(2) The ability to force the results count to respect the values of:

$noshowoutofstock
$showinstock

André

Andy
ECT Moderator

95440 Posts

Posted - 10/31/2017 :  00:49:52  
I was testing this yesterday and we will have a fix out for it shortly.

Andy

Please feel free to review / rate our software

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 10/31/2017 :  06:16:14  
Hi Andy

That's great.

I tried applying CSS to the Option values but it looks like that's not supported by HTML/CSS. An alternative way to hide the results count would be to have a new flag in includes.php.

I look forward to the fix when it comes out. Meanwhile I've edited incproducts.php to omit the count.

Regards

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 11/07/2017 :  04:01:20  
Hi Andy

I've now upgraded to v6.7.3. The result-counts displayed in the top filter-bar on products.php now respect my choice to exclude out-of-stock items from the website.

I note, however, that the result-counts displayed in the drop-down lists in search.php still include both in-stock and out-of-stock items. Are you aware of this issue?

André

Andy
ECT Moderator

95440 Posts

Posted - 11/07/2017 :  06:41:59  
I'll take a look but you can choose to remove the count from the search page

https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#manusearch

Andy

Please feel free to review / rate our software

Andre
New Member

United Kingdom
96 Posts

Pre-sales questions only
(More Details...)

Posted - 11/07/2017 :  12:57:27  
Thanks for the tip - I've removed the count for now.

Regards
André
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000