浏览代码

验证添加规则

llp 1 月之前
父节点
当前提交
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) {
             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(
                 sprintf(
                     'The gift card balance is insufficient (current balance: %s, required payment: %s). Please reselect a payment method',