소스 검색

验证添加规则

llp 4 달 전
부모
커밋
1d8dd302d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/Webkul/Shop/src/Http/Controllers/API/OnepageController.php

+ 1 - 1
packages/Webkul/Shop/src/Http/Controllers/API/OnepageController.php

@@ -253,7 +253,7 @@ class OnepageController extends APIController
         if (!$giftCard) {
         if (!$giftCard) {
             throw new \Exception('The gift card does not exist or has been deleted. Please select a new gift card');
             throw new \Exception('The gift card does not exist or has been deleted. Please select a new gift card');
         }
         }
-        if ($giftCard->remaining_giftcard_amount < $cart->giftcard_amount) {
+        if (core()->convertPrice($giftCard->remaining_giftcard_amount) < $cart->giftcard_amount) {
             throw new \Exception(
             throw new \Exception(
                 sprintf(
                 sprintf(
                     'The gift card balance is insufficient (current balance: %s, required payment: %s). Please reselect a payment method',
                     'The gift card balance is insufficient (current balance: %s, required payment: %s). Please reselect a payment method',