From 48f1df379ba03c70b147ab0c45da94fc3777661c Mon Sep 17 00:00:00 2001 From: Terry <2358269014@qq.com> Date: Fri, 27 Sep 2019 22:09:48 +0800 Subject: [PATCH] cart shipping method --- services/cart/Quote.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/cart/Quote.php b/services/cart/Quote.php index 6549f0ad..2e95e974 100644 --- a/services/cart/Quote.php +++ b/services/cart/Quote.php @@ -421,7 +421,9 @@ class Quote extends Service $curr_grand_total = $product_total + $currShippingCost - $currDiscountCost; $base_grand_total = $base_product_total + $baseShippingCost - $baseDiscountCost; - + if (!$shipping_method) { + $shipping_method = $cart['shipping_method']; + } $this->cartInfo[$cartInfoKey] = [ 'cart_id' => $cart_id, 'store' => $cart['store'], // store nme -- GitLab