Keith Fetterman
03/26/2024, 5:25 PMeminero
03/26/2024, 5:36 PMWizardModule.extend
to create your view, then you have access to the LiveOrder values using this.wizard.model
. There you will find the transaction body fields.Keith Fetterman
03/26/2024, 5:42 PMeminero
03/26/2024, 5:49 PMWizardModule
I mean there is nothing wrong using it, in fact there is not equivalent yet in the Extensibility API, take a look at this article. https://developers.suitecommerce.com/add-a-new-module-to-the-checkout-with-the-extensibility-api.html
If you are working something that would work on SCS, then you are good to go with my suggestion.Keith Fetterman
03/26/2024, 6:04 PMWizardModule
. When I look at the Extensibility API for the WizardModule
, including public and inherited members and methods, the “model” property is not defined. It’s also not mentioned in the article you referenced. To use the “model” property you need to have knowledge of the SCS core modules and data structures, which means you need access to SCA code.
I assumed the Cart component fully replaced the LiveOrderModel in regards to fetching or setting cart data. The part that surprised me today is the ability to set transaction body field via the Cart component but there was no method to retrieve the current field values.
I had implemented the Cart component in my extended WizardModule
module to access the cart data. I will roll it back to using the this.wizard.model
so it’s consistent.
Thanks for the help.eminero
03/26/2024, 6:06 PM