View Single Post
  #1  
Old 05-15-2017, 05:01 AM
 
mm23456 mm23456 is offline
 

Member
  
Join Date: May 2017
Posts: 11
 

Default Extend registration form

Hi,

I'd like to extend vendor registration form with address details and some custom attributes. I can redefine form schema but cannot create valid State field which would include list of US states.

I tried setting a new field as:

$this->mainSchema['state'] = array(

self::SCHEMA_CLASS=>'\XLite\View\FormField\Listbox \State',
self::SCHEMA_LABEL => 'State',
self::SCHEMA_REQUIRED => false,
self::SCHEMA_MODEL_ATTRIBUTES => array(
\XLite\View\FormField\Input\Base\StringInput::PARA M_MAX_LENGTH => 'length',
);

);

But somehow, this is what I get:

http://i.imgur.com/A5tEl9O.jpg

Any ideas?

Thanks!
__________________
X-cart 5.3.2.9
Multivendor
Reply With Quote