@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.mjs
CHANGED
|
@@ -1006,7 +1006,17 @@ function getCartBasicAttributes({
|
|
|
1006
1006
|
const presellAttributes = [
|
|
1007
1007
|
{
|
|
1008
1008
|
key: "_presale",
|
|
1009
|
-
value: cart?.lineItems?.some(
|
|
1009
|
+
value: cart?.lineItems?.some(
|
|
1010
|
+
(item) => item?.variant?.metafields?.global?.presell === "presell"
|
|
1011
|
+
) ? "true" : "false"
|
|
1012
|
+
}
|
|
1013
|
+
];
|
|
1014
|
+
const hideShippingAttributes = [
|
|
1015
|
+
{
|
|
1016
|
+
key: "_hide_shipping",
|
|
1017
|
+
value: cart?.lineItems?.some(
|
|
1018
|
+
(item) => item?.variant?.metafields?.global?.hideShipping === "true"
|
|
1019
|
+
) ? "true" : "false"
|
|
1010
1020
|
}
|
|
1011
1021
|
];
|
|
1012
1022
|
const weightAttributes = [
|
|
@@ -1045,6 +1055,7 @@ function getCartBasicAttributes({
|
|
|
1045
1055
|
...functionAttributes,
|
|
1046
1056
|
...presellAttributes,
|
|
1047
1057
|
...weightAttributes,
|
|
1058
|
+
...hideShippingAttributes,
|
|
1048
1059
|
...trackingAttributes,
|
|
1049
1060
|
...getReferralAttributes()
|
|
1050
1061
|
].filter((item) => item?.value !== void 0 && item?.value !== null);
|