If you make use of the Cart addLine() method, is t...
# suitecommerce
d
If you make use of the Cart addLine() method, is there any simple way to trigger display of the confirmation modal?
s
Yes, but AFAIK you can't reuse the same confirmation that's used in the core code (you'll have to create your own).
You would need to create / recreate the view and template and then use
Copy code
Layout.showContent(yourViewConstructor, {showInModal: true});
d
Thanks Steve, I guessed that was probably what you meant. Would be nice (and logical?) to have some sort of native functionality to do this more easily.
s
I am literally writing the enhancement issue ticket right now
👍 1
🙂
c
@Dominic B Please let me know if you see a double flash when displaying your custom view. This is one issue that I am trying to resolve.
d
@Christopher Dembek seems OK at the moment, but I'm not rendering full content to it as yet. I'll let you know if I notice this when I get it working properly next week.