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 December 16th, 2013, 11:54 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default Search just items on sale.

It would be helpful to have a "search just sale items" option in the dropdown search function.
  #2  
Old December 16th, 2013, 12:03 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

In the Factory or on your site?
  #3  
Old December 16th, 2013, 12:23 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

I meant in the simple or advanced search widget that is on the live site. I had my coder go in and try to set it up but said there was no way he could see to do it from "outside", and that I should suggest it as a feature. I have the regular search box and the Merchant Filter box. But on the page I have on my site of just items on sale, there is no way to search that list. Other than we did put in a "search by price and search by sale price "high to low" and "low to high". Could not make it actually search for say "Drivers on sale", which would be alot more useful.

Side Q. Where do I go to change the title over the simple search bar? I want to change it from "Search Store" to "Search Entire Store", just to avoid the confusion of being on a page of just sale items and the search bar searches the whole site and not just the items displayed on that page.

Thanks.

http://saveongolf.net/store

Last edited by yankeestonk : December 16th, 2013 at 12:23 PM. Reason: ULR
  #4  
Old December 16th, 2013, 12:32 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

You can add the following code between [search.form] and [/search.form] in your search views and that will give the user the option to search for products which are on sale.

HTML Code:
<input type="checkbox" name="saleprice" value="1-" /> On Sale
Eric
  #5  
Old December 16th, 2013, 12:53 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

That would be great. Can't find the "search views" you are referring to? Is that under "search page", "custom views"?

And to be clear, this will add another option as a drop down? So it will still be the same search widget, but with the added ability to search just sales items? Is that only if someone searches asking for a sale item, or is it a option to only search sale items.?

Thanks!
  #6  
Old December 16th, 2013, 01:14 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

You can add that code between [search.form] and [/search.form] in the following 2 places:

The Factory > Your Store > VIEWS > WIDGETS > Simple Search > Text module > Theme settings ()

The Factory > Your Store > VIEWS > WIDGETS > Advanced Search > Text module > Theme settings ()

No, it will not add a drop down. It will add a checkbox. It doesn't make sense to add a drop down. Once you add it, it will make sense.

Eric
  #7  
Old December 16th, 2013, 01:20 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

I think I found the code under Merchant Filter. Can you show me where it would go?

?>

[search.form]
<div class="store_search_form">
<p class="keyword">
<label for="word">Keyword</label> [search.word]
</p>
<p class="merchant">
<select name="merchant_id">
<?php echo dfr_get_merchants(); ?>
</select>
</p>
<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>
<p class="button">[search.submit title='Find it!']</p>
</div>
[/search.form]
  #8  
Old December 16th, 2013, 01:20 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

nevermind. you other post hadn't posted yet. Let me try that first!
  #9  
Old December 16th, 2013, 01:27 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

Worked Great! Thanks!
  #10  
Old December 17th, 2013, 10:51 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

now it doesn't seem to be working. I can tick off the sale price but it's giving results from everything. Any thoughts?

http://saveongolf.net/store
  #11  
Old December 17th, 2013, 10:55 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Make sure you are using exactly this code:

HTML Code:
<input type="checkbox" name="saleprice" value="1-" /> On Sale
  #12  
Old December 17th, 2013, 10:58 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

here is the code for simple search.

<script type="text/javascript">
<!--
/*
* NOTE: This JS code would be much better off
* existing in your theme's header.php file.
*/
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }
//-->
</script>

<div class="store_search_form">
[search.form]
[search.word onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
[search.submit title='Go']
<label><input type="checkbox" name="chkSaleprice" value="1-" />On Sale</label>
[/search.form]
</div>
  #13  
Old December 17th, 2013, 11:02 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

should these not be there?

<label> </label>

Not sure how they got there exactly?

Ken
  #14  
Old December 17th, 2013, 11:04 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

this is the advanced search code:

[search.form]
<div class="store_search_form">
<p class="keyword">
<label for="word">Keyword</label> [search.word]
</p>
<p class="merchant">
<label for="merchant">Merchant</label> [search.merchant]
</p>
<p class="tag">
<label for="tags">Tags</label> [search.tags]
</p>
<p class="price">
<label for="price">Price</label> [search.selectprice options='any, cheap(-5), $5 - $10, $10 - $20, more than 20 (20+)']
</p>
<p class="button">[search.submit title='Find it!']</p>
<input type="checkbox" name="saleprice" value="1-" /> On Sale
</div>
[/search.form]
  #15  
Old December 17th, 2013, 11:14 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

The code should be this:
HTML Code:
<input type="checkbox" name="saleprice" value="1-" /> On Sale
You have this:
HTML Code:
<input type="checkbox" name="chkSaleprice" value="1-" />On Sale
  #16  
Old December 17th, 2013, 11:19 AM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default

working now. THanks!
 


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
Search Items on Sale konstruweb Questions 4 October 15th, 2013 09:51 AM
Sale items tradedoubler dk thk1976 Questions 5 December 30th, 2012 07:42 AM
Sale Items shoespecialists Questions 5 November 17th, 2012 03:37 PM
for sale items do not show wilcockayne Problems 1 June 5th, 2012 06:05 AM
Sale Items seoandbeyond Questions 3 October 31st, 2011 08:59 PM


All times are GMT -5. The time now is 12:55 PM.


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