@nuskin/ns-shop 5.19.4 → 5.19.6

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": "5.19.4",
3
+ "version": "5.19.6",
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": {
@@ -328,7 +328,7 @@ function itemIsAvailable(product) {
328
328
  async function addProductToCart(options) {
329
329
  let cart = _getCart();
330
330
 
331
- if (!itemIsAvailable(options.product)) {
331
+ if (!options.sapLineId && !itemIsAvailable(options.product)) {
332
332
  throw new NsProductNotReleasedForSale('This product is not released for sale');
333
333
  }
334
334
 
@@ -305,7 +305,7 @@ const addContactInfo = (contacts, selectedAddress) => {
305
305
  //Only push contacts if they aren't empty
306
306
  if (selectedAddress.shippingPhone) {
307
307
  contacts.push({
308
- Country: selectedAddress.shippingCountry,
308
+ Country: selectedAddress.shippingPhoneCountry || selectedAddress.shippingCountry,
309
309
  Value: {
310
310
  value: selectedAddress.shippingPhone,
311
311
  Type: "HOMEPHONE"