Hi all, In SC, in a new Module added by the "addMo...
# suitecommerce
m
Hi all, In SC, in a new Module added by the "addModuleToStep" method, how can I "listen" to any change on the iveorder model . I am trying to check when the address is completed (when the customer doesn't have a address already created or if he change from an existing address to other ) to make a third party call and then "update" the customer order (e.g a body field in the options attribute).
s
The cart component is a replacement for LiveOrder.Model but I don't think it supports address change events.
If you can, you can bind your callback to a different event and execute it then
m
Yes I will try that
In my new Module, in "this.options.model" there is a reference of the LiveOrder model, I think that is usable and I can attach my event to that model, but not sure if could be a potential issue
s
hmm 🤔
That's kind of a grey area
The point being that it's not officially supported in extensions via the extensibility API so we can't make assurances about it in future versions
m
It is haha
Got it, I will try to find another workaround
Thanks Steve