Fixed: variable validation issue
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -2382,7 +2382,7 @@ class AdminNormalProductsControllerCore extends AdminController
|
||||
$this->errors[] = $this->l('Please select at least one buying option.');
|
||||
}
|
||||
|
||||
if (!Tools::getValue('price_calculation_method')) {
|
||||
if (Tools::getValue('id_product') && !Tools::getValue('price_calculation_method')) {
|
||||
$this->errors[] = $this->l('Please select at least one price calculation method.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user