@pelcro/react-pelcro-js 3.26.0-beta.74 → 3.26.0-beta.75
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 +14 -7
- package/dist/index.esm.js +14 -7
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9387,13 +9387,20 @@ class PelcroActions {
|
|
|
9387
9387
|
console.error("invalid item SKU id");
|
|
9388
9388
|
return false;
|
|
9389
9389
|
}
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9390
|
+
window.Pelcro.ecommerce.products.getSkus();
|
|
9391
|
+
|
|
9392
|
+
// const itemMatchesUserCurrency = skusMatchingUserCurrency.some(
|
|
9393
|
+
// (sku) => sku.id === quickPurchaseItem.id
|
|
9394
|
+
// );
|
|
9395
|
+
|
|
9396
|
+
// if (!itemMatchesUserCurrency) {
|
|
9397
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9398
|
+
// console.error(
|
|
9399
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9400
|
+
// );
|
|
9401
|
+
// return false;
|
|
9402
|
+
// }
|
|
9403
|
+
|
|
9397
9404
|
const quickPurchaseItemWithQuantity = {
|
|
9398
9405
|
...quickPurchaseItem,
|
|
9399
9406
|
quantity: 1
|
package/dist/index.esm.js
CHANGED
|
@@ -9357,13 +9357,20 @@ class PelcroActions {
|
|
|
9357
9357
|
console.error("invalid item SKU id");
|
|
9358
9358
|
return false;
|
|
9359
9359
|
}
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9360
|
+
window.Pelcro.ecommerce.products.getSkus();
|
|
9361
|
+
|
|
9362
|
+
// const itemMatchesUserCurrency = skusMatchingUserCurrency.some(
|
|
9363
|
+
// (sku) => sku.id === quickPurchaseItem.id
|
|
9364
|
+
// );
|
|
9365
|
+
|
|
9366
|
+
// if (!itemMatchesUserCurrency) {
|
|
9367
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9368
|
+
// console.error(
|
|
9369
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9370
|
+
// );
|
|
9371
|
+
// return false;
|
|
9372
|
+
// }
|
|
9373
|
+
|
|
9367
9374
|
const quickPurchaseItemWithQuantity = {
|
|
9368
9375
|
...quickPurchaseItem,
|
|
9369
9376
|
quantity: 1
|