Add price rounding for specific price reductions in Product class
This commit is contained in:
@@ -3954,6 +3954,11 @@ class ProductCore extends ObjectModel
|
||||
$price -= $specific_price_reduction;
|
||||
}
|
||||
|
||||
// Zaokrąglanie w górę tylko gdy mamy redukcję
|
||||
if ($specific_price && $specific_price['reduction'] > 0) {
|
||||
$price = Tools::ceilf($price);
|
||||
}
|
||||
|
||||
// Group reduction
|
||||
if ($use_group_reduction) {
|
||||
$reduction_from_category = GroupReduction::getValueForProduct($id_product, $id_group);
|
||||
|
||||
Reference in New Issue
Block a user