Advertisement:

Author Topic: default osclass s_zip field help  (Read 1587 times)

lucky_strike

  • Guest
default osclass s_zip field help
« on: November 18, 2012, 05:31:01 pm »
to enable s_zip field in user registration , and item location   have to edit item_processing ,item.form.class,user.form.class..????
 is there a  shorter way to do that ?
« Last Edit: November 18, 2012, 06:45:29 pm by lucky_strike »

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
Re: s_zip help
« Reply #1 on: November 18, 2012, 05:47:22 pm »


Admin--> listing--> custom fields

lucky_strike

  • Guest
Re: s_zip help
« Reply #2 on: November 18, 2012, 06:06:20 pm »
y dont want  to reinvent the wheel...  yve write a plugin. to insert it in  a new table... or  y can change  to insert into item location table
but y wanna use default s_zip field defined by osclass..
 how to enable it.. and how to process the field...
 the s_zip field 

 defined in osclass/model/ItemLocation.php
* Set data related to t_item_location table
         */
        function __construct()
        {
            parent::__construct();
            $this->setTableName('t_item_location') ;
            $this->setPrimaryKey('fk_i_item_id') ;
            $array_fields = array(
                'fk_i_item_id',
                'fk_c_country_code',
                's_country',
                's_address',
                's_zip',
                'fk_i_region_id',

lucky_strike

  • Guest
Re: s_zip help
« Reply #3 on: November 18, 2012, 06:35:18 pm »
or how to display the custom field  in item location by default... when installing  a new plugin