@nuskin/product-components 3.18.3-gms-11721.2 → 3.18.3-gms-13639.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/.releaserc +1 -1
- package/components/NsProductOffer.vue +4 -14
- package/docs/CHANGELOG.md +1 -1
- package/mixins/NsProductMixin.js +16 -9
- package/package.json +1 -1
- package/gl-sbom-npm-yarn.cdx.json +0 -4134
package/.releaserc
CHANGED
|
@@ -48,16 +48,8 @@
|
|
|
48
48
|
<div :class="$style.offerMessaging">
|
|
49
49
|
<h2 :class="$style.offerTitle">{{ localTranslations.welcome }}</h2>
|
|
50
50
|
<p :class="$style.offerMessage">
|
|
51
|
-
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{
|
|
52
|
-
|
|
53
|
-
}}</span>
|
|
54
|
-
<span
|
|
55
|
-
v-if="
|
|
56
|
-
!offer.isGroupOffer &&
|
|
57
|
-
offer.countryCode === 'JP' &&
|
|
58
|
-
!offer.isQuickShare
|
|
59
|
-
"
|
|
60
|
-
>
|
|
51
|
+
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{ offer.name }}</span>
|
|
52
|
+
<span v-if="!offer.isGroupOffer && offer.countryCode === 'JP' && !offer.isQuickShare">
|
|
61
53
|
さん,
|
|
62
54
|
</span>
|
|
63
55
|
<span v-else-if="!offer.isGroupOffer && offer.countryCode !== 'JP'"
|
|
@@ -929,15 +921,13 @@ export default {
|
|
|
929
921
|
|
|
930
922
|
if (
|
|
931
923
|
availability &&
|
|
932
|
-
|
|
924
|
+
availability.addToCart &&
|
|
933
925
|
Object.keys(this.products[sku].data).length >= 1 &&
|
|
934
926
|
availableQuantity >= 1
|
|
935
927
|
) {
|
|
936
928
|
const selectedQuantity = availability.selectedQuantity || 0;
|
|
937
929
|
if (selectedQuantity > 0) {
|
|
938
|
-
const price = availability.
|
|
939
|
-
? availability.price
|
|
940
|
-
: availability.adrPrice || 0;
|
|
930
|
+
const price = availability.price || 0;
|
|
941
931
|
|
|
942
932
|
totalPrice += price * selectedQuantity;
|
|
943
933
|
this.totalProductQuantity += selectedQuantity;
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.18.3-gms-
|
|
1
|
+
## [3.18.3-gms-13639.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.3-gms-13639.1...v3.18.3-gms-13639.2) (2025-09-04)
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -698,15 +698,22 @@ const NsProductMixin = {
|
|
|
698
698
|
this.product.backOrderDate &&
|
|
699
699
|
this.localTranslations.backOrderedWithDate
|
|
700
700
|
) {
|
|
701
|
-
this.statusMessage = this.localTranslations.backOrderedWithDate.replace(
|
|
702
|
-
"%date%",
|
|
703
|
-
dateFormatter.getCountryFormattedDate(
|
|
704
|
-
this.product.backOrderDate,
|
|
705
|
-
this.locale
|
|
706
|
-
)
|
|
707
|
-
);
|
|
708
|
-
this.statusMessageKey = "backOrderedWithDate";
|
|
709
701
|
|
|
702
|
+
if(this.product.atpQuantity > 0) {
|
|
703
|
+
this.statusMessage = "";
|
|
704
|
+
this.statusMessageKey = "releasedForSale";
|
|
705
|
+
|
|
706
|
+
} else {
|
|
707
|
+
this.statusMessage = this.localTranslations.backOrderedWithDate.replace(
|
|
708
|
+
"%date%",
|
|
709
|
+
dateFormatter.getCountryFormattedDate(
|
|
710
|
+
this.product.backOrderDate,
|
|
711
|
+
this.locale
|
|
712
|
+
)
|
|
713
|
+
);
|
|
714
|
+
this.statusMessageKey = "backOrderedWithDate";
|
|
715
|
+
}
|
|
716
|
+
|
|
710
717
|
let backOrderDate = new Date(this.product.backOrderDate);
|
|
711
718
|
let today = new Date();
|
|
712
719
|
if (backOrderDate < today) {
|
|
@@ -1082,7 +1089,7 @@ const NsProductMixin = {
|
|
|
1082
1089
|
isBaseSku: this.isBaseSku,
|
|
1083
1090
|
isVariantSku: this.isVariantSku,
|
|
1084
1091
|
addToCart: !this.disableAddToCart,
|
|
1085
|
-
addToAdr: !this.
|
|
1092
|
+
addToAdr: !this.disableAddToCart,
|
|
1086
1093
|
selectedQuantity: Number(this.selectedQuantity),
|
|
1087
1094
|
maxQuantity: this.maxQuantity,
|
|
1088
1095
|
originalPrice: this.originalPrice,
|