Showing
2 changed files
with
2 additions
and
2 deletions
@@ -111,7 +111,7 @@ class BuyNowController { | @@ -111,7 +111,7 @@ class BuyNowController { | ||
111 | } | 111 | } |
112 | }); | 112 | }); |
113 | 113 | ||
114 | - if (autoSelectCouponCodeStr) { | 114 | + if (!orderInfo.coupon_code && autoSelectCouponCodeStr) { |
115 | orderInfo.coupon_code = autoSelectCouponCodeStr; | 115 | orderInfo.coupon_code = autoSelectCouponCodeStr; |
116 | res.cookie('order-info', JSON.stringify(orderInfo), actCkOpthn); | 116 | res.cookie('order-info', JSON.stringify(orderInfo), actCkOpthn); |
117 | } | 117 | } |
@@ -100,7 +100,7 @@ exports.orderEnsure = (req, res, next) => { | @@ -100,7 +100,7 @@ exports.orderEnsure = (req, res, next) => { | ||
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | - if (autoSelectCouponCodeStr) { | 103 | + if (!orderInfo.coupon_code && autoSelectCouponCodeStr) { |
104 | orderInfo.coupon_code = autoSelectCouponCodeStr; | 104 | orderInfo.coupon_code = autoSelectCouponCodeStr; |
105 | res.cookie('order-info', JSON.stringify(orderInfo), actCkOpthn); | 105 | res.cookie('order-info', JSON.stringify(orderInfo), actCkOpthn); |
106 | } | 106 | } |
-
Please register or login to post a comment