My website has a offer of free shipping on orders ...
# suitecommerce
t
My website has a offer of free shipping on orders above $49, for that I am using standard promocode ("FREESHIPPING"). Upto checkout it shows free shipping to customer but when shipping fee is also deducted from customer's account. In NS, the sales order is coming with the promocode, but that is not working (shipping is getting charged), If I remove, and reenter the same code shipping fee is removed. Slack Conversation
p
In my experience when this was happening it was something before submit (user event or workflow) that was re-setting something that triggered a recalculation of the shipping method (and netsuite not triggering promocode recalculation afterwards)
try to debug by turning off workflows and before submit user events, also scriptable carts if you have any
in my case i think what we were doing before submit was setting the location at the sales order level.
t
In that case that should be in system notes ?
p
system notes shows final values only. old db value vs new db value. whatever happens in between doesn’t show. if on a before submit script i set a field three times with different values, for example, only the last value would show on system notes.
t
okay, I got it. I have got a script.
this is the beforesubmit function, as per your advice this seems to create problem
Can you please check ? @PabloZ
p
That seems to be specific to one particular customer though
And location was my experience, but it doesn't necessarily mean in your case location is the problem. Again, the way to test is turn scrips off 1 by 1
t
And for that to test again we have to make an order again ?
from the website
Actually main problem is, this is happening only incase of website orders.
p
Yes, indeed, my experience with this calc problems is for web orders. And you need to test doing web orders indeed.
t
When we make an order in NS the promotion is applied
p
(obviously, sandbox is prefered to do these tests)
t
this client doesn't have sandbox 😄
p
rofl. That's a problem indeed.
t
Problem becomes square to problem when we don't have sandbox . Anyway Thanks, I'll see that