@nuskin/ns-util 3.99.3 → 3.99.4
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 +1 -1
- package/src/configurationService.js +0 -16
package/package.json
CHANGED
|
@@ -222,11 +222,6 @@ let getMarketConfig = function (forceLoad, _country, ignoreContext) {
|
|
|
222
222
|
overwriteAgelocConfig();
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
// Check to see if we need to do any overrides for pitch.
|
|
226
|
-
if (nuskin.util.isPersonalOffer()) {
|
|
227
|
-
overwriteConfigForPitchApp();
|
|
228
|
-
}
|
|
229
|
-
|
|
230
225
|
// Look to see if there is a storage value that overwrites config
|
|
231
226
|
overrideConfigWithStorage(country);
|
|
232
227
|
|
|
@@ -312,17 +307,6 @@ function overwriteAgelocConfig() {
|
|
|
312
307
|
}
|
|
313
308
|
}
|
|
314
309
|
|
|
315
|
-
function overwriteConfigForPitchApp() {
|
|
316
|
-
// Set overrides given it is a pictch checkout.
|
|
317
|
-
|
|
318
|
-
// Enable Ecom3 guest checkout
|
|
319
|
-
// Note: Ecom3 uses guest checkout for Pitch if we have a pitch cart. Nothing more to override here.
|
|
320
|
-
|
|
321
|
-
// Hide promo codes. We need to hide "./checkout/showProductPromoCode" and "./checkout/showPaymentPromoCodeOffers"
|
|
322
|
-
config.checkout.showProductPromoCode = false;
|
|
323
|
-
config.checkout.showPaymentPromoCodeOffers = false;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
310
|
function overrideConfigWithStorage(country) {
|
|
327
311
|
let storageObject = storage.metadata.CONFIGURATION_OVERRIDE
|
|
328
312
|
storageObject.key = storage.keys.CONFIGURATION_OVERRIDE + '_' + country
|