I am developing an app with PHP and jQuery. I want to trigger a event whenever customer add a product into cart. How I can identify add to cart event. There can be different theme and different theme can have different structure. Is it possible to identify such events or there is another scenario to handle such events.