I’m using the wixStores_onCartCompleted event to trigger a write to a collection, on reviewing the data in the collection it seems like the event is fired twice.
Is this expected or a bug?
I’m using the wixStores_onCartCompleted event to trigger a write to a collection, on reviewing the data in the collection it seems like the event is fired twice.
Is this expected or a bug?
bump
Should only be happening the once providing the event is in your events.js in your backend. It might be a bug, however just double check your code to make sure it is okay too.
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#onCartCompleted
Pretty confident it’s a bug at this point as it’s happening on 99% of events, and also It’s a single very basic function.
Also happening for me intermittently. Sometimes even fired 3x on one purchase.