@nuskin/product-components 3.18.3-gms-11721.1 → 3.18.3-gms-13639.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/.releaserc CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branches": [
3
- "master", {"name":"GMS-11721", "channel":"prerelease", "prerelease":"gms-11721"}
3
+ "master", {"name":"GMS-13639", "channel":"prerelease", "prerelease":"gms-13639"}
4
4
  ],
5
5
  "plugins": [
6
6
  "@semantic-release/release-notes-generator",
@@ -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
- offer.name
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
- (availability.addToCart || availability.addToAdr) &&
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.addToAdr
939
- ? availability.adrPrice
940
- : availability.price || 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-11721.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2...v3.18.3-gms-11721.1) (2025-07-25)
1
+ ## [3.18.3-gms-13639.1](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2...v3.18.3-gms-13639.1) (2025-09-04)
@@ -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.disableAddToAdr,
1092
+ addToAdr: !this.disableAddToCart,
1086
1093
  selectedQuantity: Number(this.selectedQuantity),
1087
1094
  maxQuantity: this.maxQuantity,
1088
1095
  originalPrice: this.originalPrice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/product-components",
3
- "version": "3.18.3-gms-11721.1",
3
+ "version": "3.18.3-gms-13639.1",
4
4
  "description": "Nu Skin Product Components",
5
5
  "main": "index.js",
6
6
  "scripts": {