Hello Everyone. I want to add an event to mini car...
# suitecommerce
s
Hello Everyone. I want to add an event to mini cart view using Extensibility API, but its not adding it to that particular view. Here is the code that I've written to achieve above requirement.
Layout.addToViewEventDefinition('Header.MiniCart.View', 'click [data-action="prevent-checkout"], callback);
e
You have a typo, you are missing a 's' letter on
addToViewEventsDefinition
s
@eminero Thanks. That's just a typing issue. Otherwise it doesn't work.
e
I have not used that method yet, however the docs says, you cannot add an event to an element if this already has one.