@nuskin/ns-shop 6.6.1 → 6.6.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 +1 -1
- package/src/cart/cartService.js +8 -1
package/package.json
CHANGED
package/src/cart/cartService.js
CHANGED
|
@@ -832,7 +832,14 @@ async function checkItemAvailability() {
|
|
|
832
832
|
const response = await ProductService.getProductBySku({sku: item.product.sku});
|
|
833
833
|
const productInfo = response.success && response.product;
|
|
834
834
|
const QualificationService = await getQualificationService()
|
|
835
|
-
|
|
835
|
+
let qual = null
|
|
836
|
+
if (productInfo.equinoxProductId) {
|
|
837
|
+
qual = await QualificationService.getQualification(productInfo.equinoxProductId)
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
if (!qual){
|
|
841
|
+
qual = await QualificationService.getQualification(productInfo.sku)
|
|
842
|
+
}
|
|
836
843
|
let cartQty = 0;
|
|
837
844
|
// if base sku
|
|
838
845
|
if (productInfo.baseSku) {
|