bianjunhui 1 주 전
부모
커밋
8e5a269da9
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/Webkul/BagistoApi/src/State/SaveCheckoutCartProcessor.php

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

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