bianjunhui hai 1 semana
pai
achega
8e5a269da9

+ 3 - 0
packages/Webkul/BagistoApi/src/State/SaveCheckoutCartProcessor.php

@@ -90,6 +90,7 @@ class SaveCheckoutCartProcessor implements ProcessorInterface
 
             if ($this->shouldUpdate($data->useShippingInsurance)) {
                 $this->applyShippingInsurance((string) $data->useShippingInsurance);
+            }
 
             if ($data->rewardPoints !== null && $data->rewardPoints !== -1) {
                 $this->applyRewardPoints((int) $data->rewardPoints);
@@ -261,7 +262,9 @@ class SaveCheckoutCartProcessor implements ProcessorInterface
         }
 
         $this->shippingInsuranceService->activate();
+    }
 
+    /**
      * Apply or remove reward points redemption. "0" removes the redemption.
      *
      * The actual discount amount is computed and deducted from the grand total