From 58199b2d7a974b192106a7309e58e0e7928bfbf4 Mon Sep 17 00:00:00 2001 From: Tsarma Date: Thu, 14 Aug 2025 09:02:17 +0200 Subject: [PATCH] Update ProductCollectionSurcharge Rule.php Source Id for a rule is always stored as 0, inside table `tl_iso_product_collection_surcharge`. With this change source_id is stored correctly. --- .../library/Isotope/Model/ProductCollectionSurcharge/Rule.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/modules/isotope_rules/library/Isotope/Model/ProductCollectionSurcharge/Rule.php b/system/modules/isotope_rules/library/Isotope/Model/ProductCollectionSurcharge/Rule.php index 44e0dd5dbb..36e8fdf892 100644 --- a/system/modules/isotope_rules/library/Isotope/Model/ProductCollectionSurcharge/Rule.php +++ b/system/modules/isotope_rules/library/Isotope/Model/ProductCollectionSurcharge/Rule.php @@ -74,6 +74,7 @@ public static function createForRuleInCollection(RuleModel $objRule, IsotopeProd $objSurcharge->tax_class = 0; $objSurcharge->before_tax = true; $objSurcharge->addToTotal = true; + $objSurcharge->source_id = $objRule->id; // Product or producttype restrictions if ($objRule->productRestrictions != '' && $objRule->productRestrictions != 'none') {