I have created a custom js file in my custom module.
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> '; return $this; } }
So whenever Add to cart is happened, I am trying to call my js function. but which is not happening.
Same I have to achieve for all the main events in magento. so created the common js function and trying to send the data in each observers.
In the above example i have mentioned Add to cart event to see if that works.
Can anyone help me with this. Thanks!!