@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.js
CHANGED
|
@@ -2634,13 +2634,7 @@ var usePlusMemberItemCustomAttributes = ({
|
|
|
2634
2634
|
}) => {
|
|
2635
2635
|
const { deliveryCustomData } = deliveryData || {};
|
|
2636
2636
|
return react.useMemo(() => {
|
|
2637
|
-
const itemCustomAttributes = [
|
|
2638
|
-
// _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
|
|
2639
|
-
{
|
|
2640
|
-
key: "_last_url",
|
|
2641
|
-
value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
|
|
2642
|
-
}
|
|
2643
|
-
];
|
|
2637
|
+
const itemCustomAttributes = [];
|
|
2644
2638
|
if (deliveryCustomData?.is_presale) {
|
|
2645
2639
|
itemCustomAttributes.push({
|
|
2646
2640
|
key: "_is_presale",
|
|
@@ -2659,7 +2653,13 @@ var usePlusMemberCheckoutCustomAttributes = ({
|
|
|
2659
2653
|
const { deliveryCustomData } = deliveryData || {};
|
|
2660
2654
|
const { profile } = usePlusMemberContext();
|
|
2661
2655
|
return react.useMemo(() => {
|
|
2662
|
-
const checkoutCustomAttributes = [
|
|
2656
|
+
const checkoutCustomAttributes = [
|
|
2657
|
+
// _last_url: 付费会员结算完成之后 checkout 有一个继续购买的按钮, 用于跳转到继续购买的页面
|
|
2658
|
+
{
|
|
2659
|
+
key: "_last_url",
|
|
2660
|
+
value: typeof window !== "undefined" ? window.location.origin + window.location.pathname : ""
|
|
2661
|
+
}
|
|
2662
|
+
];
|
|
2663
2663
|
if (deliveryCustomData) {
|
|
2664
2664
|
checkoutCustomAttributes.push({
|
|
2665
2665
|
key: "_checkout_delivery_custom",
|