Advertisement:

Author Topic: How do I add another mode to search?  (Read 2276 times)

werwe

  • Newbie
  • *
  • Posts: 27
How do I add another mode to search?
« on: December 14, 2013, 11:07:13 pm »
Top search page I want to add a new display of posts:
all ads
buy
Buy
Selection can be done with plugins BuySell
Can someone help me?
Thanks

screencast

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How do I add another mode to search?
« Reply #1 on: December 14, 2013, 11:34:34 pm »
@werwe
I prefer using custom attributes plugin for buy/sell option
You can find helpful also this post (how to add fields to search)
http://doc.osclass.org/How_to_extend_fields

werwe

  • Newbie
  • *
  • Posts: 27
Re: How do I add another mode to search?
« Reply #2 on: December 14, 2013, 11:48:47 pm »
@Frosticek - Right. I did not know how to use attributes BuySell plugin.
Thanks a lot for your help :)

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How do I add another mode to search?
« Reply #3 on: December 14, 2013, 11:58:54 pm »
@werwe
You are welcome. If your question is solved, please add [Solved] to tiltle of this post  ;)

werwe

  • Newbie
  • *
  • Posts: 27
Re: How do I add another mode to search?
« Reply #4 on: January 10, 2014, 11:47:57 pm »
Failed. BuySell Plugins not work in version  332
Selecting all the result is correct but if I select only buy or sell plugins not return any results.
Sorry for my English.
Can someone update this plugin to work with osclass  332 please?
« Last Edit: January 10, 2014, 11:50:16 pm by werwe »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How do I add another mode to search?
« Reply #5 on: January 11, 2014, 02:47:54 pm »
@werwe
This plugin is not supported anymore, you may use built-in custom fields or custom attributes plugin instead  ;)

werwe

  • Newbie
  • *
  • Posts: 27
Re: How do I add another mode to search?
« Reply #6 on: February 09, 2014, 11:10:41 am »
A little help, please - I implemented custom plugin for all astflel Attributes:
Group Name: All
Name attribute: Ad Category:
Select attribute: Sell, Buy, Exchange, Rent
Category search is done using Custom Attributes search_form plugin.
How can I do a horizontal tabs above categories (All, Sell, Buy, Exchange, Rent) tab above see_by in search.php?
I could use jquery tabs? How?
Thanks in advance

werwe

  • Newbie
  • *
  • Posts: 27
Re: How do I add another mode to search?
« Reply #7 on: February 27, 2014, 10:50:17 am »
I want to create tabs in a horizontal search.php before see_by function that takes the data below.

  First Tabs (All)
$ sql = "SELECT * FROM` oc_t_item_custom_attr_values ​​`WHERE` s_value `IN (\ 'Company \', \ 'natural \') ';

- Tabs 2 (Company)
$ sql = "SELECT * FROM` oc_t_item_custom_attr_values ​​`WHERE` s_value `LIKE \ 'Company \'";

- Tabs 3: (Individuals)
$ sql = "SELECT * FROM` oc_t_item_custom_attr_values ​​`WHERE` s_value `LIKE \ 'Natural \'";

Please, can someone help me?