@nuskin/product-components 3.17.11-brw-4218.2 → 3.17.12-brw-4218.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/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.17.
|
|
1
|
+
## [3.17.12-brw-4218.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.11...v3.17.12-brw-4218.1) (2024-08-27)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.4",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:9675bd08-ec11-4242-8331-70727f9e75ef",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2024-08-
|
|
7
|
+
"timestamp": "2024-08-27T18:07:13Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -662,6 +662,7 @@ const NsProductMixin = {
|
|
|
662
662
|
);
|
|
663
663
|
})
|
|
664
664
|
.catch(error => {
|
|
665
|
+
this.maxQuantity = shopProduct.maxQuantity;
|
|
665
666
|
console.error("Failed to retrieve add to cart quantity.", error);
|
|
666
667
|
})
|
|
667
668
|
.finally(() => {
|
|
@@ -1123,6 +1124,12 @@ const NsProductMixin = {
|
|
|
1123
1124
|
productToAdd.equinoxProductId = productIdentifier;
|
|
1124
1125
|
//productToAdd.properties = productData.products[0].properties
|
|
1125
1126
|
}
|
|
1127
|
+
if (
|
|
1128
|
+
productToAdd.backOrderDate &&
|
|
1129
|
+
new Date(productToAdd.backOrderDate) > new Date()
|
|
1130
|
+
) {
|
|
1131
|
+
productToAdd.inventory = "BACKORDER";
|
|
1132
|
+
}
|
|
1126
1133
|
options.product = new ShopProduct(productToAdd);
|
|
1127
1134
|
options.add = {
|
|
1128
1135
|
item: {
|