Trigger a JavaScript function based on the data fetched from Woo commerce hook
After going through a lot of articles and solutions I finally figured it out: Directory Structure for the plugin (Boilerplate directory structure used from here) First step: Register a js script which would track the event/ user activity and pass it the ajax URL through which it would fetch the product details via ajax. // … Read more