View Single Post
  #6  
Old 05-15-2017, 11:34 AM
 
mm23456 mm23456 is offline
 

Member
  
Join Date: May 2017
Posts: 11
 

Default Re: Extend registration form

Quote:
Originally Posted by cflsystems
Look in the class - it has filter for country I believe

It does, it has a parameter country, but I am not sure how to set it if I am instantiating class in schema. I tried to add it to model attributes, but it does not make a lot of sense:

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

self::SCHEMA_CLASS => '\XLite\View\FormField\Select\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',
\XLite\View\FormField\Select\State::PARAM_COUNTRY => new \XLite\Model\WidgetParam\TypeString('Country', 'US')
)

);
__________________
X-cart 5.3.2.9
Multivendor
Reply With Quote