Hello everyone I'm havving an issue with the LiveO...
# suitecommerce
s
Hello everyone I'm havving an issue with the LiveOrder.Model, when I try to use the setShipMethod function with Guest shopper teh page reloads and goes back to Login page, we have a customize way to calculate shipping due to business reasons, but the problem is that we need to calculate tax and the only way we could do it in the past to trigger avalaras tax calculation was through this method. I believe the error is for insuficcient permissions for the role, but the customer center should have al the permissions required for this funcionality. Has anyone got this issue before?
On sandbox the exact same code works just fine FYI
I have continued going through a rabbit hole with this issue, due to business reasons We have created a customizzation for guest checkout and register flow, but we are still using Netsuites functions to login the user, when login sucessful it redirects to the checkout where we allegedly are logged in, the profile model indicates so. Aafter we call the setShipMethod and communicate with the backend the response from that call is "USER NOT LOGGED IN" Has anyone experienced this before? We already have a defect filed but wanna check with th e community if there are possible work araounds for this.
d
Hi @Santiago the setShippingMethod(shipmethod) is only available on the checkout and login is required app/help/helpcenter.nl?fid=section_n2506263.html#bridgehead_4482715184, maybe you can check if the request(log the headers) is comming from another app like myaccount
s
Yes the problem relies on the checkout flow, but I'm using the Account Model functions to register users, but it seems after going to the checkout Guest Shoppers or FIRSTTIME register users the backend response is Correct login the users is, BUT whne trying to work with the checkout the backend response is USEr not logged in for some reason I wonder if this has something to do with permissions? but I checked every section and role and everything seems to be fine