removed from_quantity use from specific pricing
This commit is contained in:
@@ -100,11 +100,6 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
|
||||
'align' => 'center',
|
||||
'filter_key' => 'gl!name'
|
||||
),
|
||||
'from_quantity' => array(
|
||||
'title' => $this->l('From quantity'),
|
||||
'align' => 'center',
|
||||
'class' => 'fixed-width-xs'
|
||||
),
|
||||
'reduction_type' => array(
|
||||
'title' => $this->l('Reduction type'),
|
||||
'align' => 'center',
|
||||
@@ -221,13 +216,6 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
|
||||
'name' => 'name'
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('From quantity'),
|
||||
'name' => 'from_quantity',
|
||||
'maxlength' => 10,
|
||||
'required' => true,
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('Price (tax excl.)'),
|
||||
@@ -345,6 +333,7 @@ class AdminSpecificPriceRuleControllerCore extends AdminController
|
||||
|
||||
public function processSave()
|
||||
{
|
||||
$_POST['from_quantity'] = 1;
|
||||
$_POST['price'] = Tools::getValue('leave_bprice_on') ? '-1' : Tools::getValue('price');
|
||||
if (Validate::isLoadedObject(($object = parent::processSave()))) {
|
||||
/** @var SpecificPriceRule $object */
|
||||
|
||||
Reference in New Issue
Block a user