@anker-in/shopify-react 1.2.8 → 1.2.9-beta.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/dist/hooks/index.js +22 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +22 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -3
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +12 -1
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +12 -1
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/provider/index.js
CHANGED
|
@@ -1015,7 +1015,17 @@ function getCartBasicAttributes({
|
|
|
1015
1015
|
const presellAttributes = [
|
|
1016
1016
|
{
|
|
1017
1017
|
key: "_presale",
|
|
1018
|
-
value: cart?.lineItems?.some(
|
|
1018
|
+
value: cart?.lineItems?.some(
|
|
1019
|
+
(item) => item?.variant?.metafields?.global?.presell === "presell"
|
|
1020
|
+
) ? "true" : "false"
|
|
1021
|
+
}
|
|
1022
|
+
];
|
|
1023
|
+
const hideShippingAttributes = [
|
|
1024
|
+
{
|
|
1025
|
+
key: "_hide_shipping",
|
|
1026
|
+
value: cart?.lineItems?.some(
|
|
1027
|
+
(item) => item?.variant?.metafields?.global?.hideShipping === "true"
|
|
1028
|
+
) ? "true" : "false"
|
|
1019
1029
|
}
|
|
1020
1030
|
];
|
|
1021
1031
|
const weightAttributes = [
|
|
@@ -1054,6 +1064,7 @@ function getCartBasicAttributes({
|
|
|
1054
1064
|
...functionAttributes,
|
|
1055
1065
|
...presellAttributes,
|
|
1056
1066
|
...weightAttributes,
|
|
1067
|
+
...hideShippingAttributes,
|
|
1057
1068
|
...trackingAttributes,
|
|
1058
1069
|
...getReferralAttributes()
|
|
1059
1070
|
].filter((item) => item?.value !== void 0 && item?.value !== null);
|