I'm trying to capture the event that fires every time a new order is entered to my store.
1. I read all the relevant article in the forum
2. I've added an events.js file under site structure\backend
3. I add the following code as shown by one of Wix' employees let newOrderId = event.orderId; let NewOrder = wixData.get('Orders', newOrderId);
4. I added console.log every where to see if the event was capture
Nothing happens, it looks like the events.js file is not called or captures the event.