@nuskin/ns-shop 7.1.4 → 7.1.5-mdigi-138.2
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
|
@@ -14,7 +14,7 @@ const addToCustomList = (customList, type, key, value) => {
|
|
|
14
14
|
let found = false;
|
|
15
15
|
|
|
16
16
|
customList.forEach((custom) => {
|
|
17
|
-
if ((!type || custom.
|
|
17
|
+
if ((!type || custom.Type === type) && custom.Key === key) {
|
|
18
18
|
custom.Value = value;
|
|
19
19
|
found = true;
|
|
20
20
|
}
|
|
@@ -984,6 +984,7 @@ let syncPayment = function(sapPayment, localSelectedPayment) {
|
|
|
984
984
|
* @param adr - Adr info from checkout needed to set the custom field for adr_contract_length
|
|
985
985
|
*/
|
|
986
986
|
const populateSalesOrder = (action, adr) => {
|
|
987
|
+
const user = UserService.getUser();
|
|
987
988
|
let order = OrderManager.getOrder(),
|
|
988
989
|
runConfig = RunConfigService.getRunConfig(),
|
|
989
990
|
lastExternalId = OrderManager.getLastOrderId(),
|
|
@@ -1009,6 +1010,9 @@ const populateSalesOrder = (action, adr) => {
|
|
|
1009
1010
|
}
|
|
1010
1011
|
addToCustomList(salesOrder.Custom, "", "SENDER", order.distributorName);
|
|
1011
1012
|
addToCustomList(salesOrder.Custom, "", "ZZUSE_PTS", order.shippingPayWithPoints ? "X" : "NA");
|
|
1013
|
+
if (user && user.isGuest) {
|
|
1014
|
+
addToCustomList(salesOrder.Custom, "FLAG", "GUEST", "TRUE");
|
|
1015
|
+
}
|
|
1012
1016
|
const microsite = getCachedConfigField('microsite');
|
|
1013
1017
|
if (microsite) {
|
|
1014
1018
|
salesOrder.Reason = "CUSTOM";
|