View Single Post
  #16  
Old January 17th, 2012, 03:01 PM
meinehandtasche meinehandtasche is offline
 
Join Date: Jul 2011
Posts: 43
Default

Store ID: 32722
Website URL: http://www.meinehandtasche.de/
URL to page in question: http://www.meinehandtasche.de/store/


Hi Eric,

I copied this code into the functions.php of my wordpress theme (lifestyle from studiopress):

Quote:
<?php
//Function to Get Brands
function dfr_get_brands() {
global $wpdb;
$merchants = $wpdb->get_results("SELECT DISTINCT p.brand FROM ".$wpdb->prefix."dfr_shop_products p, ".$wpdb->prefix."wp_dfr_shop_p2c pc, ".$wpdb->prefix."wp_dfr_shop_cats c AND pc.cat_id = c.id AND c.name = \'Woks\' ORDER BY c.name, p.brand");
$html = '';
foreach ($brands as $brands) {
$html .= '<option value="'.$brands->brand.'">'.$brands->brand.'</option>';
}
return $html;
}
?>
and I copied this code into a new view category widget within the datafeedr factory:

Quote:

<!-- code for your vuew -->
<form method="get">
<span>
<?php echo dfr_get_brands(); ?>
<input type="submit" value="Go" />
</span>
</form>
but it doesn't look like it should. Please scroll down on this page
http://www.meinehandtasche.de/store
and you can see the black list of words under the header "MARKEN".

I don't have a clue actually what this list is showing. The result should look like under the header "MARKEN FILTER".

Do you have any idea what went wrong?

Thanks,
Oliver