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
when executing login_with_vipps("woocommerce") manually, it seems it always redirect to the checkout... I've scoured everywhere and I cant seem to find why this happens.
To be clear, I'm executing that function after a ajax request to add something to the cart.... it redirects to vipps, and then on the successful redirect back, it then redirects directly to the cart...
I've looked through the source here and I seem to be missing where this setting is...
I'm not using any plugins to set auto redirect to cart or anything, its pretty vanilla. Any thoughts on where this might be getting that redirection link from?
The text was updated successfully, but these errors were encountered:
That's default behaviour if there is something in the shopping cart - the idea being that the user is logging in to continue to payment. The code in question is in VippsWooLogin, and looks like this (it is a filter on login_redirect):
As you see, you can modify this using the 'login_with_vipps_woo_login_redirect' filter; if you have other suggestions wrg the behaviour here we are open to feedback.
In that filter, by the way, the session will normally have the page the user came fron in the variable $link = $sessiondata['referer']; in case you want to always return the users to the page they started the login from.
Hi
when executing
login_with_vipps("woocommerce")
manually, it seems it always redirect to the checkout... I've scoured everywhere and I cant seem to find why this happens.To be clear, I'm executing that function after a ajax request to add something to the cart.... it redirects to vipps, and then on the successful redirect back, it then redirects directly to the cart...
I've looked through the source here and I seem to be missing where this setting is...
I'm not using any plugins to set auto redirect to cart or anything, its pretty vanilla. Any thoughts on where this might be getting that redirection link from?
The text was updated successfully, but these errors were encountered: