![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() this is for our store Ride On Surf SHop
STore ID = 30949 My filter by brand is going to be too very large. We wanted a drop down list like on my Archives see left sidebar. I am sure this is possible but thought I would ask you first before attempting this task. Is it possible? Has it been done before? All things considered we are loviing the datafeedr plugin. thanks for your help. |
#2
|
||||
|
||||
![]() Hi
Yes, you can add a brand filter in a drop down menu. Here's some sample code which you can add to a Text module within a Widget View. HTML Code:
<div> <form method="get"> <span> <?php echo datafeedr_tools()->form_select("brand", array( "Sony" => "View all Sony Products", "Panasonic" => "View all Panasonic Products", "Toshiba" => "View all Toshiba Products", )); ?> <input type="submit" value="Go" /> </span> </form> </div> There's also a bit of discussion about that here: http://www.datafeedr.com/forums/showthread.php?t=3987 And a really big example here: http://www.datafeedr.com/forums/showthread.php?t=3853 Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
||||
|
||||
![]() Hi
As per the Posting Guidelines, your thread has been broken up into other new threads. http://www.datafeedr.com/forums/showthread.php?t=4184 http://www.datafeedr.com/forums/showthread.php?t=4185 Eric
__________________
![]() ![]() ![]() ![]() |
#4
|
|||
|
|||
![]() Hi Eric
I have added this code and it makes the filter as a drop down menu. <div> <form method="get"> <span> <?php echo datafeedr_tools()->form_select("brand", array( "Animal" => "Animal", "Addict" => "Addict", "Billbong" => "Billabong", "Bench" => "Bench", )); ?> <input type="submit" value="Go" /> </span> </form> </div> However, when i select a brand within a category such at mens t shirts and use the filter it doesnt work/filter the brand? http://rideonsurfshop.co.uk/store/category/t-shirts/ When i use this code which lists the brand filters intead of a drop down menu it works fine <ul> <?php if (@$_GET['brand']) { ?> <li><a href="[server.url type='fullpage' query='-brand']">[X] Remove brand filter</a></li> <?php } else { ?> <li><a href="[server.url type='fullpage' query='brand=Billabong']">Billabong</a></li> <?php } ?> </ul> How do i get this function in a drop down menu format? As ever thanks for your support, it is amazing! |
#5
|
||||
|
||||
![]() You've misspelled Billabong. You have Billbong. If you use the correct spelling, it does work.
For dealing with "All Brands", use this line in the array(): "" => "All Brands",
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
No drop down menu in new factory | marcaustin | Problems | 15 | March 10th, 2011 02:36 PM |
Brand filter? | sylviathewitch | Problems | 3 | March 8th, 2011 08:43 AM |
Add drop down menus for store categories | ccgmark | Tips, Tricks & Tutorials | 13 | January 28th, 2011 01:34 PM |