I have an issue with triggering events.js file. This issue has been reported many times by other members in corvid forum but there was no final solution provided. Can you guys check the issue and help us to solve it.
Hi Shan, I am using store backend Api, and here is the code in event.js file
import wixStores from 'wix-stores-backend';
export function wixStores_onCartCreated(event) {
console.log(event)
}
So this code should actually print the event in the site monitoring tool when the cart is created. And I tested it from the live site and noting is happening in the site monitoring tool. Here is the API reference link
I did notice that the event only fires when you add the item from the individual product page and it will not fire if you add the item from the quick view window on the main shop page.
@shantanukumar847 I have a custom “Add to cart” button and I am using code to add the product to the cart. Not sure if that is causing this different behaviour…
Aha…ok…Maybe.
I will try soon with the wix store product page add to cart button and will update the status here… If it’s the case then there should be a fix/product improvement from side of wix corvid team. Thanks for the support @shantanukumar847@brett