|
@@ -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
|