@nuskin/ns-shop 5.19.6 → 5.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -1305,7 +1305,7 @@ function checkContext(params){
|
|
|
1305
1305
|
if (context === 'skin_consult'){
|
|
1306
1306
|
return params.isMySite
|
|
1307
1307
|
} else {
|
|
1308
|
-
return params.isMySite
|
|
1308
|
+
return typeof params.isMySite === 'boolean' ? params.isMySite : window.location.href.search(/\bmysite\b/) >= 0;
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
@@ -144,7 +144,8 @@ const populateShipping = (order, salesOrder) => {
|
|
|
144
144
|
|
|
145
145
|
salesOrder['Shipping'] = {
|
|
146
146
|
ShippingMethod:{
|
|
147
|
-
Code:code
|
|
147
|
+
Code:code,
|
|
148
|
+
...(nsConfig.checkout.showSignatureRequired && !order.signatureRequired && {NoSignatureRequired: "X"})
|
|
148
149
|
},
|
|
149
150
|
ShippingParty:[]
|
|
150
151
|
};
|