@anker-in/shopify-react 0.1.1-beta.16 → 0.1.1-beta.17
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 +8 -8
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +8 -8
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/hooks/index.mjs
CHANGED
|
@@ -2625,13 +2625,7 @@ var usePlusMemberItemCustomAttributes = ({
|
|
|
2625
2625
|
}) => {
|
|
2626
2626
|
const { deliveryCustomData } = deliveryData || {};
|
|
2627
2627
|
return useMemo(() => {
|
|
2628
|
-
const itemCustomAttributes = [
|
|
2629
|
-
// _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
|
|
2630
|
-
{
|
|
2631
|
-
key: "_last_url",
|
|
2632
|
-
value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
|
|
2633
|
-
}
|
|
2634
|
-
];
|
|
2628
|
+
const itemCustomAttributes = [];
|
|
2635
2629
|
if (deliveryCustomData?.is_presale) {
|
|
2636
2630
|
itemCustomAttributes.push({
|
|
2637
2631
|
key: "_is_presale",
|
|
@@ -2650,7 +2644,13 @@ var usePlusMemberCheckoutCustomAttributes = ({
|
|
|
2650
2644
|
const { deliveryCustomData } = deliveryData || {};
|
|
2651
2645
|
const { profile } = usePlusMemberContext();
|
|
2652
2646
|
return useMemo(() => {
|
|
2653
|
-
const checkoutCustomAttributes = [
|
|
2647
|
+
const checkoutCustomAttributes = [
|
|
2648
|
+
// _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
|
|
2649
|
+
{
|
|
2650
|
+
key: "_last_url",
|
|
2651
|
+
value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
|
|
2652
|
+
}
|
|
2653
|
+
];
|
|
2654
2654
|
if (deliveryCustomData) {
|
|
2655
2655
|
checkoutCustomAttributes.push({
|
|
2656
2656
|
key: "_checkout_delivery_custom",
|