cortega Posted February 20, 2013 Share Posted February 20, 2013 He creado un almacén común a varias tiendas, y cuando le doy a administrar las existencias a un producto cualquiera, me exige el precio y lo que quiero hacer, es que no sea obligatorio. En AdminStockManagementController.php he visto lo siguiente: array( 'type' => 'text', 'label' => $this->l('Unit price (tax excl.):'), 'name' => 'price', 'required' => true, 'size' => 10, 'maxlength' => 10, 'desc' => $this->l('Unit purchase price or unit manufacturing cost for this product (tax excl.)'), 'hint' => sprintf($this->l('Last unit price (tax excl.): %s'), $last_sm_unit_price_te), ), He probado a poner en required =>false pero me sigue diciendo que el precio es incorrecto, cuando intento poner cantidades a un producto sin precio desde el administrador de existencias. Link to comment Share on other sites More sharing options...
Recommended Posts