Fixed: variable validation issue

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
amit sharma
2026-08-19 15:47:39 +05:30
parent 12d2001fdb
commit ad010a6809

View File

@@ -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.');
}