tabexseriescomponents 0.0.585 → 0.0.586
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/dist/index.cjs.js +6 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.umd.js +6 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -76872,6 +76872,12 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
76872
76872
|
onClick: function onClick() {
|
|
76873
76873
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
76874
76874
|
setshowquantity(true);
|
|
76875
|
+
if (item.hasvariants == 0) {
|
|
76876
|
+
var tempitem = _objectSpread$2({}, item);
|
|
76877
|
+
tempitem.quantity = 1;
|
|
76878
|
+
setitem(_objectSpread$2({}, tempitem));
|
|
76879
|
+
addtocartfunc('add', tempitem.quantity);
|
|
76880
|
+
}
|
|
76875
76881
|
} else {
|
|
76876
76882
|
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
76877
76883
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
package/dist/index.esm.js
CHANGED
|
@@ -76823,6 +76823,12 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
|
|
|
76823
76823
|
onClick: function onClick() {
|
|
76824
76824
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
76825
76825
|
setshowquantity(true);
|
|
76826
|
+
if (item.hasvariants == 0) {
|
|
76827
|
+
var tempitem = _objectSpread$2({}, item);
|
|
76828
|
+
tempitem.quantity = 1;
|
|
76829
|
+
setitem(_objectSpread$2({}, tempitem));
|
|
76830
|
+
addtocartfunc('add', tempitem.quantity);
|
|
76831
|
+
}
|
|
76826
76832
|
} else {
|
|
76827
76833
|
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
76828
76834
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
package/dist/index.umd.js
CHANGED
|
@@ -76696,6 +76696,12 @@
|
|
|
76696
76696
|
onClick: function onClick() {
|
|
76697
76697
|
if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
|
|
76698
76698
|
setshowquantity(true);
|
|
76699
|
+
if (item.hasvariants == 0) {
|
|
76700
|
+
var tempitem = _objectSpread$2({}, item);
|
|
76701
|
+
tempitem.quantity = 1;
|
|
76702
|
+
setitem(_objectSpread$2({}, tempitem));
|
|
76703
|
+
addtocartfunc('add', tempitem.quantity);
|
|
76704
|
+
}
|
|
76699
76705
|
} else {
|
|
76700
76706
|
if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
76701
76707
|
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|