Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

refine filter on select pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-21-2014, 08:59 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Question refine filter on select pages

We have a lot of categories and sub cats

Client only wants refine filters showing on certain pages.

can I say if(catid - "XX" ) then do this ?

Or is this not possible with refine filters ?

thanks

DonnaNJ
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote
  #2  
Old 05-21-2014, 10:59 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: refine filter on select pages

Donna, I don't have a copy of Refine Filters, but I see code for it in my templates. Look in /customer/left_bar.tpl in my template I see this on line 13:
{if $active_modules.Refine_Filters}

Just add to the if statement:
{if $active_modules.Refine_Filters and $catid ne 117}

If you have many categories where you don;t want it to show, a much more elegant solution would be to check the category in PHP and see if it is in the do not show list, then assign a $showfilter variable that you can use in your if statement.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 05-22-2014, 03:54 AM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default Re: refine filter on select pages

I have Refine Filters. In any category, you can choose which (if any) show, and what order they appear in. So if a more logical order suits one category but not another, you can change it to suit your needs.
__________________
Version 4.1.6 to 4.1.11
Reply With Quote

The following user thanks sparrowdog for this useful post:
totaltec (05-22-2014)
  #4  
Old 05-22-2014, 05:19 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default Re: refine filter on select pages

Thanks - what I really need to do is find out if the cat is the last sub cat before products

I don't want it showing until they drill down to the last cat ...

so what I need to say is if cat has no child cats - then show filters

I'll have to poke around some PHP/MySQL code.

Unless there is already some function ?

thanks

DonnaNJ
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote
  #5  
Old 05-22-2014, 05:20 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default Re: refine filter on select pages

oh I just saw the second answer from sparrowdog

- so I can turn it off for all but the last level cat ?

let me look at that

thanks
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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


All times are GMT -8. The time now is 06:09 PM.

   

 
X-Cart forums © 2001-2020