Advertisement:

Author Topic: How to create an attributes plugin to extend your ads' fields  (Read 16574 times)

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
How to create an attributes plugin to extend your ads' fields
« on: September 08, 2011, 08:21:29 pm »
Hi,

We wrote a tutorial on how to create an attributes plugin to extend the ads' fields, ie. add extra fields and filter search results with the new fields.


http://doc.osclass.org/index.php/How_to_extend_fields


Please, check it out and post your questions and comments here.
« Last Edit: March 26, 2014, 06:10:31 pm by trains58554 »

bilekas

  • Full Member
  • ***
  • Posts: 219
  • Bilekas
Re: How to create an attributes plugin to extend your ads' fields
« Reply #1 on: September 25, 2011, 09:35:15 pm »
This is huge!

 Thank you!!!

anarosaklinke

  • Newbie
  • *
  • Posts: 2
Re: How to create an attributes plugin to extend your ads' fields
« Reply #2 on: November 10, 2011, 09:10:26 pm »
Hello!!

I have one idea for the plugin!

In my site I add a Pagseguro Gateway of Payments… so the users can sell itens in my classifields!

Demo:
http://www.clikclasshelp.com.br/associacoes/pedido-de-ajuda_160

The user enter a emails login of Pagseguro when publishing the iten and can sell!

Now Need to create a interface for the users and merchants...


Swede

  • Sr. Member
  • ****
  • Posts: 388
Re: How to create an attributes plugin to extend your ads' fields
« Reply #3 on: November 13, 2011, 03:11:06 am »
getting payed to market pagsecuro??

Roberto

  • Newbie
  • *
  • Posts: 46
Re: How to create an attributes plugin to extend your ads' fields
« Reply #4 on: September 01, 2012, 09:31:27 pm »
 :P Thank you so much!!!
But I have a question : how can i show my field in the item page?? Thank you!

downunder

  • Newbie
  • *
  • Posts: 4
Re: How to create an attributes plugin to extend your ads' fields
« Reply #5 on: September 11, 2012, 02:08:07 pm »
Hi All,

Thanks a lot for this tutorial/plugin.  I have learnt a lot from it. 

I am seeking help to get the s_myfield data from this plugin included in the title on the item page.

For example, the current code in the Modern theme/ item.php includes:-
"<div class="content item">
            <div id="item_head">
                <div class="inner">
                    <h1><?php if( osc_price_enabled_at_items() ) { ?><span class="price"><?php echo osc_item_formated_price() ; ?></span> <?php } ?><strong><?php echo osc_item_title() . ' - by ' . osc_item_field("s_description", $locale) . ' - ' . osc_item_city(); ?></strong></h1>
                    <p id="report">........."

So I thought I could include my new field into the title with something like this:-

<h1><?php if( osc_price_enabled_at_items() ) { ?><span class="price"><?php echo osc_item_formated_price() ; ?></span> <?php } ?><strong><?php echo osc_item_title() . ' - by ' . osc_item_field("s_myfield", $locale) . ' - ' . osc_item_city(); ?></strong></h1>

But this does NOT work.

Any suggestions welcome please.

Roberto

  • Newbie
  • *
  • Posts: 46
Re: How to create an attributes plugin to extend your ads' fields
« Reply #6 on: October 06, 2012, 02:35:10 pm »
Thank you!
It's possibile to extend the search on the extra fields created?

sharkey

  • Full Member
  • ***
  • Posts: 102
Re: How to create an attributes plugin to extend your ads' fields
« Reply #7 on: December 26, 2012, 07:52:38 am »
This plugin supersedes any attribute plugins.  There is no longer any need to create plugins that are specific to a category (like cars, horses, bikes)

Enjoy!  :)

http://forums.osclass.org/plugins/%28new-plugin%29-custom-attributes/

Adyyda

  • Sr. Member
  • ****
  • Posts: 435
Re: How to create an attributes plugin to extend your ads' fields
« Reply #8 on: April 24, 2015, 07:06:45 pm »
Hi,

We wrote a tutorial on how to create an attributes plugin to extend the ads' fields, ie. add extra fields and filter search results with the new fields.


http://doc.osclass.org/index.php/How_to_extend_fields


Please, check it out and post your questions and comments here.

Hello. Did you test each option from Custom fields?
I am using Bender and for instance Type Radio is radio when you create a new listing but in search it shows as dropdown?
Checkbox is even worse. You can't select checkbox and then show options like accommodation facilities (TV, Shower, wireless etc) so that users can select multiple values when searching.

Or do i miss something?

jams

  • Newbie
  • *
  • Posts: 7
Re: How to create an attributes plugin to extend your ads' fields
« Reply #9 on: August 09, 2015, 11:44:59 pm »
This plugin supersedes any attribute plugins.