is it normal behavior that when a customer selects...
# suitecommerce
t
is it normal behavior that when a customer selects a different shipping address it automatically changes the default shipping address on the customer? is there a way to prevent that?
m
Yes, this is default behavior. You would need a script to revert the changed default value
👍 1
s
@Livestrong Technologies you've responded to a few messages now with ChatGPT generated messages and advertising your services. While I don't moderate this server/channel, I would ask that you stop because it's not contributing value.
l
Im trying to help.
s
You're posting incorrect answers generated by ChatGPT as a vehicle to advertise your business. This is only helping you.
l
okay i have deleted those comment
c
@texmc It looks like you might be able to modify the
update
method in the suitescript address model by setting
defaultshipping
to "F". Or, after the LiveOrder.Model front-end PUT is done you can quietly send an AddressModel.save() with the
defaultshipping
set to "F" for that address id.
t
thanks @Chris will take a closer look at the network tab but this is happening on checkout with an existing address so was assuming it was inherent to the setShippingAddress method. the workaround make sense, resetting after it updates