@nuskin/ns-shop 7.1.4 → 7.1.5-mdigi-138.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.1.4",
3
+ "version": "7.1.5-mdigi-138.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": {
@@ -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";