From 2bea5641eb6dc4ecc1ba22335930a1466a3b30f7 Mon Sep 17 00:00:00 2001 From: Steve <34465153+xxl4@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:28:19 +0800 Subject: [PATCH] disable the free shipping --- src/Docs/V1/Upselling/Controllers/Controller.php | 2 +- src/Upselling.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Docs/V1/Upselling/Controllers/Controller.php b/src/Docs/V1/Upselling/Controllers/Controller.php index cd56f78..3dcb5f7 100644 --- a/src/Docs/V1/Upselling/Controllers/Controller.php +++ b/src/Docs/V1/Upselling/Controllers/Controller.php @@ -14,7 +14,7 @@ * ) * * @OA\Server( - * url=APP_URL, + * url="http://localhost:8000/api/v1", * description="NexaMerchant Rest API" * ) * diff --git a/src/Upselling.php b/src/Upselling.php index e9239d2..f14595b 100644 --- a/src/Upselling.php +++ b/src/Upselling.php @@ -78,7 +78,7 @@ public function applyUpselling($cart) { if($processingOrder && !empty($cart->customer_email) && empty($cart->coupon_code)) { - Cart::saveShippingMethod('free_free'); + // Cart::saveShippingMethod('free_free'); disable the shipping method // Apply coupon code if(!empty($this->coupon_code)) {