@nuskin/ns-shop 7.6.0-mdigi-280.1 → 7.6.0-td-1017.2.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/ns-shop",
|
|
3
|
-
"version": "7.6.0-
|
|
3
|
+
"version": "7.6.0-td-1017.2.1",
|
|
4
4
|
"description": "The description that will amaze and astound your audience when they read it",
|
|
5
5
|
"main": "src/shop.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@nuskin/ns-common-lib": "1.4.8",
|
|
27
27
|
"@nuskin/ns-feature-flags": "1.5.0",
|
|
28
28
|
"@nuskin/ns-loyalty-web": "1.5.7",
|
|
29
|
-
"@nuskin/ns-product-lib": "2.
|
|
29
|
+
"@nuskin/ns-product-lib": "2.21.0-td-1017.1",
|
|
30
30
|
"@nuskin/nuskinjquery": "2.3.1",
|
|
31
31
|
"@nuskin/order-model": "3.1.3",
|
|
32
|
-
"@nuskin/product-lib": "2.4.
|
|
32
|
+
"@nuskin/product-lib": "2.4.2-td-1017.1",
|
|
33
33
|
"axios": "1.8.3",
|
|
34
34
|
"decimal.js": "10.4.3",
|
|
35
35
|
"jp-conversion": "0.0.7",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@babel/preset-env": "^7.23.8",
|
|
41
41
|
"@nuskin/configuration-sdk": "3.0.0",
|
|
42
42
|
"@nuskin/exclusive-offer-sdk": "1.4.1",
|
|
43
|
-
"@nuskin/ns-account": "5.
|
|
43
|
+
"@nuskin/ns-account": "5.14.0-td-1017.1",
|
|
44
44
|
"@nuskin/ns-jsanalyzer": "1.0.1",
|
|
45
|
-
"@nuskin/ns-product": "3.
|
|
45
|
+
"@nuskin/ns-product": "3.52.0-td-1017.1",
|
|
46
46
|
"@nuskin/ns-util": "4.7.2",
|
|
47
47
|
"axios-mock-adapter": "1.22.0",
|
|
48
48
|
"babel-cli": "6.26.0",
|
|
@@ -461,7 +461,8 @@ function _assembleAdrProperties(requestData, options) {
|
|
|
461
461
|
isBackOrdered: requestData.skus && requestData.skus[requestData.skus.length - 1].backOrdered || false,
|
|
462
462
|
imageURL: options.product.fullImage || '',
|
|
463
463
|
name: options.product.title,
|
|
464
|
-
productId: options.product.equinoxProductId || ''
|
|
464
|
+
productId: options.product.equinoxProductId || '',
|
|
465
|
+
productionBom: options.product && options.product.properties && options.product.properties.productionBom || false
|
|
465
466
|
};
|
|
466
467
|
}
|
|
467
468
|
|
|
@@ -6,10 +6,8 @@ import {getCachedConfigField} from '@nuskin/configuration-sdk';
|
|
|
6
6
|
import {UserService} from "@nuskin/ns-account";
|
|
7
7
|
import PaymentAdapter from '../payment/PaymentAdapter';
|
|
8
8
|
import pickupUtil from '../shipping/pickupUtil';
|
|
9
|
-
import { storage } from "@nuskin/ns-util";
|
|
10
9
|
|
|
11
10
|
let splitLineItems = [];
|
|
12
|
-
const utmInfo = storage.getItem(storage.metadata.UTM_INFO) || {};
|
|
13
11
|
const addToCustomList = (customList, type, key, value) => {
|
|
14
12
|
if (value) {
|
|
15
13
|
let found = false;
|
|
@@ -497,10 +495,6 @@ const populateCategory = (salesOrder) => {
|
|
|
497
495
|
} else if (util.getSponsorId()) {
|
|
498
496
|
// affiliates don't use a subdomain. So if we have a sponsor and it isn't a pitch then we consider it a storefront
|
|
499
497
|
salesOrder.Category = "STOREFRONT";
|
|
500
|
-
} else if (utmInfo.utm_medium && utmInfo.utm_medium.includes('paidsearch')) {
|
|
501
|
-
salesOrder.Category = 'PAIDSEARCH';
|
|
502
|
-
} else if (utmInfo.utm_medium && utmInfo.utm_medium.includes('paidsocial')) {
|
|
503
|
-
salesOrder.Category = 'PAIDAD';
|
|
504
498
|
} else {
|
|
505
499
|
salesOrder.Category = 'WEB';
|
|
506
500
|
}
|
|
@@ -1039,12 +1033,6 @@ const populateSalesOrder = (action, adr) => {
|
|
|
1039
1033
|
if (user && user.isGuest) {
|
|
1040
1034
|
addToCustomList(salesOrder.Custom, "FLAG", "GUEST", "TRUE");
|
|
1041
1035
|
}
|
|
1042
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_SOURCE", utmInfo.utm_source);
|
|
1043
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_MEDIUM", utmInfo.utm_medium);
|
|
1044
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN", utmInfo.utm_campaign);
|
|
1045
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_CAMPAIGN_ID", utmInfo.utm_id);
|
|
1046
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_CONTENT", utmInfo.utm_content);
|
|
1047
|
-
addToCustomList(salesOrder.Custom, "FLAG", "UTM_TERM", utmInfo.utm_term);
|
|
1048
1036
|
const microsite = getCachedConfigField('microsite');
|
|
1049
1037
|
if (microsite) {
|
|
1050
1038
|
salesOrder.Reason = "CUSTOM";
|