Aw: Joomshopping Plugins: SimpleCaptcha
SimpleCapcha 1.1.0 not works for JS 3.20.2
New version SimpleCapcha 1.1.1 - fixed save data.
JS 3.20.2 - not support save data.
Fixed manual:
install SimpleCapcha 1.0.1
1.
edit
\components\com_jshopping\templates\default\user\register.php
row 5 add
if (JRequest::getVar('lrd')) {
$this->user = (object)JFactory::getSession()->get('registrationdata');
} else {
$this->user = new stdClass();
}
See code new version joomshopping (4.18.4)
need change all field
example
<input type = "text" name = "f_name" id = "f_name" value = "" class = "inputbox" />
change to
<input type = "text" name = "f_name" id = "f_name" value = "<?php print $this->user->l_name?>" class = "inputbox" />
2.
edit
components\com_jshopping\controllers\user.php
row 190 add code:
if (JRequest::getVar('lrd')) {
$this->user = (object)JFactory::getSession()->get('registrationdata');
} else {
$this->user = new stdClass();
}
change
$select_countries = JHTML::_('select.genericlist', array_merge($option_country, $country->getAllCountries()),'country','id = "country" class = "inputbox" size = "1"','country_id','name', $jshopConfig->default_country);
to
$select_countries = JHTML::_('select.genericlist', array_merge($option_country, $country->getAllCountries()),'country','id = "country" class = "inputbox" size = "1"','country_id','name', $this->user->country);
change
$select_client_types = JHTML::_('select.genericlist', $client_types,'client_type','class = "inputbox" onchange="showHideFieldFirm(this.value)"','id','name');
to
$select_client_types = JHTML::_('select.genericlist', $client_types,'client_type','class = "inputbox" onchange="showHideFieldFirm(this.value)"','id','name', $this->user->client_type);
change
$select_titles = JHTML::_('select.genericlist', $option_title,'title','class = "inputbox"','title_id','title_name' );
to
$select_titles = JHTML::_('select.genericlist', $option_title,'title','class = "inputbox"','title_id','title_name', $this->user->title);
Последнее изменение: 22.11.2020 10:29