Hi Everyone, In our checkout we have a button that...
# suitecommerce
m
Hi Everyone, In our checkout we have a button that has the data-action="change-address" clicking on this won't actually change the address. I believe this is being Handled in OrderWizard.Module.Address.ts file. Is there a way that we can change the address our selves? I looked into into the frontend extensibility api but cant find anything to handle this. Does nayone have any ideas?
s
I'm pretty sure address objects are bound to item lines, which can then be changed by using Cart.updateLine
m
oooh i will take a look at that thanks!
m
I need a way to allow the user to change his shipping addresses this used to work before we upgraded
In the cart class there is a getShipAddress() but i dont see a set shipping address
The changed address button has data-action="change-address" which used to work for changing addresses
s
I'm confused by what you mean. Are you saying that the UI is not working?
m
Yes when we click on the a with data-action="change-address" it would allow you to change the address. I think the changeAddressHandler in the ts file is not working so I would like to allow the user to change his address by creating my own handler
s
Really? You don't want to investigate why the native functionality is not working and fix it?
Duplicating native functionality because it is malfunctioning is not good practice at all
m
I am looking into it is there a way to modify a ts file?
s
SuiteCommerce Advanced, yes, but SuiteCommerce, no. But it should work out of the box -- what customisations or changes have you made so far?
Perhaps you should start by deactivating your active extensions
m
previously there was just a select address we added the change address from our previos vinson app.
s
We still have that. Depending on your configuration, it's either a separate page (I believe this is 'standard') or in page (one page checkout).
m
if we remove the defualt setting fot he address in the my account we can change the address
message has been deleted