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
Old July 21st, 2014, 12:35 PM
yankeestonk yankeestonk is offline
Join Date: Jun 2013
Posts: 605
Default exclude merchant filter?

I have the filter by merchant search box. I have about 15 merchants. You can either search all merchants or any one merchant. Is there a way to search "selected merchants". (more than one but not all) and/or exlcude 1 or more merchants?

My filter code if it helps:

function dfr_get_merchants() {
global $wpdb;
$merchants = $wpdb->get_results("SELECT merchant, merchant_id FROM ".$wpdb->prefix."dfr_shop_products WHERE network NOT LIKE '%Coupons%' GROUP BY merchant");
$html = '<option value="">Select all merchants</option>';
foreach ($merchants as $k => $v) {
if (trim($v->merchant) != "") {
$selected = (strip_tags($_GET['merchant_id'])==$v->merchant_id) ? ' selected="selected"' : '';
$html .= '<option value="'.$v->merchant_id.'"'.$selected.'>'.$v->merchant.'</option>';
return $html;

<div class="store_search_form">
<p class="keyword">
<label for="word">Keyword</label> []
<p class="merchant">
<select name="merchant_id">
<?php echo dfr_get_merchants(); ?>
<p class="price">
<label for="price">Price</label> [search.selectprice options='any, under $50(-50), $50 - $100, $100 - $200, $200 - $350, more than 350 (350+)']
<p class="button">[search.submit title='Find it!']</p>
Old July 21st, 2014, 01:39 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


This is not possible with the Factory plugin.


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
Exclude Duplicate Filter webfeedr Questions 3 May 19th, 2014 09:15 AM
Filter and exclude words unendlich Questions 1 April 8th, 2014 12:07 PM
Exclude duplicates parkerproject Problems 7 November 6th, 2011 01:59 PM
sitemap - exclude products sylviathewitch Questions 1 October 6th, 2011 07:50 AM

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

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