Hey all, I am working in an existing extension for...
# suitecommerce
m
Hey all, I am working in an existing extension for the Cart in the Shopping Application, and I need the TransactionHistory model, which is in the myAccount app. What is the best way to get this into the Shopping Application? If I just 'inject' it into the extension, it throws the 'not found' error in the console. This is a 19.1 site, btw, and customizations are handled through extensions. Thanks for your time!
s
The Shopping application is not setup to use modules from the My Account application, so this what won't work. Theoretically, you can modify the distro.json to include the modules you need in the distribution of the application you need them in, but there may be more to it than simply doing that. Typically, we would say that if you need to access transaction history outside of the normal area for it, then you should write a custom module to your needs using SuiteScript.
m
Thanks. I think I remember in Elbrus I would have handled this in the distro but it wasn't really working so far in 19.1 and I wasn't sure what the best practices on this might be.