Jump to content

Stock Management - Price Not Mandatory


Recommended Posts

I created a common store shops, and when I manage stocks to any product, the price and requires me what I want to do, is not mandatory.

 

In AdminStockManagementController.php have seen the following:

 

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),

),

 

I tried to put required => false but I keep saying that the price is incorrect, when I try to put numbers to a product without price from the stock management.

Edited by cortega (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...