You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using codebase from woonext app pro. i'm encountering an issue where the shipping rate doesn't update while signed in but it works as guest.
On my woocommerce store i have shipping rates saved. for US its 8$ and some label and other info. for rest of world its 20$
after updateCart i get the response cart object with correct shipping rate and total when im as guest. when im signed as a registered user and change country, the shipping rate is fixed to 8$
here's the logic that i've implemented for updating shipping rate.
in my checkout form , if the country is changed the below function is triggered
I'm using codebase from woonext app pro. i'm encountering an issue where the shipping rate doesn't update while signed in but it works as guest.
On my woocommerce store i have shipping rates saved. for US its 8$ and some label and other info. for rest of world its 20$
after updateCart i get the response cart object with correct shipping rate and total when im as guest. when im signed as a registered user and change country, the shipping rate is fixed to 8$
here's the logic that i've implemented for updating shipping rate.
in my checkout form , if the country is changed the below function is triggered
const { setShippingLocale } = useOtherCartMutations(sessionContext);
const { cart: cartData, updateCart } = useSession();
const updateShippingRate = async () => {
try {
};
u can reference the sessionOperations.tsx file and the app/api/cart/route.ts file from woonext app pro
packages used are:
"@woographql/next": "^1.4.9",
"@woographql/react-hooks": "^0.9.3",
"@woographql/session-utils": "^1.5.3",
Plugin Versions
is this a woocommerce internal issue or woographql plugin issue?
The text was updated successfully, but these errors were encountered: