X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   refine filter on select pages (https://forum.x-cart.com/showthread.php?t=69217)

DBK Web Builder 05-21-2014 08:59 AM

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

totaltec 05-21-2014 10:59 AM

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.

sparrowdog 05-22-2014 03:54 AM

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.

DBK Web Builder 05-22-2014 05:19 AM

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

DBK Web Builder 05-22-2014 05:20 AM

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


All times are GMT -8. The time now is 01:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.