Hello. If you read through the i ntroduction in the API docs , tehre is information about the lifecycle of an order which should help you understand under which circumstances different events will be triggered
I’m also having issues with creating backend event handlers right now. I successfully got them working in the past. But somehow newly created backend handlers are NOT* fired at the moment. Even the sample code from backend/events.js is not working on a published site.
// This is from the sample code in backend/events.js. It is not firing on a published website when an image is uploaded.
export function wixMediaManager_onFileUploaded(event) {
console.log(‘The file "’ + event.fileInfo.fileName + ‘" was uploaded to the Media Manager’);
}
If you believe you are experiencing a bug, please start a ticket with customer care. This forum is a community forum place for devs to help each other with code. fwiw I am having no current issues with events.js on my sites so could be something else in your case.
I’ve submitted a ticket, but was told to go to the forum. I have a website with existing backend event handlers in events.js working just fine. If I try to create a new event handler, it is not being fired. Can you kindly create a new site, add a backend event handler (any handler), publish the website, and check if it’s working for you? Thank you!
Hey Mustafa, I’m sorry that it is not working. If you believe it to be a bug at this point you will want to submit a report to customer care so the issue can be raised with the appropriate team. Customer care is not active in this forum as it is intended as a community space for folks to help each other with code.