Devo usare prestashop in versione italiana con c.f., p.iva e privacy:
/themes/prestashop/autentication.tpl
<p class="radio required">
<span>{l s='group'}</span>
<input type="radio" name="group" id="group1" value="2"
<label for="group1" class="top">{l s='Business'}</label>
<input type="radio" name="group" id="group2" value="3"/>
<label for="group2" class="top">{l s='Privato'}</label>
</p>
/autentication.php recupero il dato via post
$customer->id_default_group = (empty($_POST['group']) ? 1 : intval($_POST['group']));
nella funziona add di classes/Customers.php
//if ($this->id_default_group == 1)
// $row = array('id_customer' => intval($this->id), 'id_group' => 1);
if ($this->id_default_group)
$row = array('id_customer' => intval($this->id), 'id_group' =>$this->id_default_group);
else
$row = array('id_customer' => intval($this->id), 'id_group' => 1);
return Db::getInstance()->AutoExecute(_DB_PREFIX_.'customer_group', $row, 'INSERT');
versione 1.3.6.0 – 0.306s - presa da http://www.prestamodules.com/prestashop/1-Prestashop-Italia.html
riferimento ad articolo sul blog http://www.prestashop.com/forums/viewthread/89794/
Nessun commento:
Posta un commento