Unable to use addToViewEventsDefinition in 2021

Below is the example which is not working for me.

 

Layout.addToViewEventsDefinition(
‘ProductDetails.ImageGallery.View’,
‘click [data-action=”test”]’,
function(e) {
console.log(e);
}
);

I also tried pdp.addToViewEventsDefinition but that didn’t work too

Any help would be appreciated.

Rookie Asked on July 1, 2021 in SuiteCommerce.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor