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 October 3rd, 2012, 09:46 AM
officialwatch officialwatch is offline
 
Join Date: Sep 2012
Posts: 51
Default regarding filter

Store ID:
Website URL: http://official-watch.com/
URL to page in question:

sir i paste the following code to call brand filter
<ul>
<?php
$brands = dfr_get_brands($category->id);
foreach ($brands as $brand) {
if ($brand != "") {
$brand = urlencode($brand);
?>
<li><a href="[server.url type='fullpage' query='brand=$brand']"><?php echo urldecode($brand); ?></a></li>
<?php } ?>
<?php } ?>
</ul>

and following function
<?php
function dfr_get_brands($cat=false) {
global $wpdb;
if ($cat) { $cat_query = "WHERE cat_id = ".$cat." "; }
$brands = $wpdb->get_results("SELECT brand FROM ".$wpdb->prefix."dfr_shop_products ".$cat_query."GROUP BY brand");
$list = array();
foreach ($brands as $brands) {
$list[] = $brands->brand;
}
return $list;
}
?>


but its not filtering the product why??
  #2  
Old October 3rd, 2012, 09:53 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

It works for me: http://official-watch.com/?brand=Locman

Eric
 


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
Brand Filter - old brands still in the filter rickagter Questions 2 September 20th, 2012 09:43 AM
Merchant Filter nzcid Problems 1 March 26th, 2012 05:19 AM
Price filter quitjob Questions 1 March 18th, 2012 09:59 AM
'Remove Price filter' like brand filter Giftoly Questions 1 January 20th, 2012 10:48 AM


All times are GMT -5. The time now is 01:11 PM.


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