# I want to automatically capture the order details right when a new order is placed on my Wix website

**URL:** <https://forum.wixstudio.com/t/i-want-to-automatically-capture-the-order-details-right-when-a-new-order-is-placed-on-my-wix-website/70656>\
**Category:** Ask the community\
**Tags:** code, wix-stores\
**Created:** [April 29, 2025, 3:21pm UTC](https://forum.wixstudio.com/t/i-want-to-automatically-capture-the-order-details-right-when-a-new-order-is-placed-on-my-wix-website/70656 "2025-04-29T15:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Fonseca\_dos\_San](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@Igor\_Fonseca\_dos\_San](https://forum.wixstudio.com/u/Igor_Fonseca_dos_San)\
**Post date:** [April 29, 2025, 3:21pm UTC](https://forum.wixstudio.com/t/i-want-to-automatically-capture-the-order-details-right-when-a-new-order-is-placed-on-my-wix-website/70656/1 "2025-04-29T15:21:24Z")

</div>

**Product:**  
Wix Website Editor | Wix Velo

**What are you trying to achieve:**  
I want to automatically capture the order details right when a new order is placed on my Wix website. The goal is to process this order using a custom Velo function so that I can later send it to my supplier for fulfillment. This should ideally happen in real-time, or as close to the order placement as possible.

**What have you already tried:**  
I’ve created a backend function in Velo intended to trigger when an order is submitted. I consulted the official Wix Velo documentation, tried using the `wixEcom_onOrderCreated()` event handler, and verified my permissions and function exports. However, the function doesn’t seem to trigger when a new order is placed through the store. I’ve also looked at forum posts and examples but still can’t get it to work.

**Additional information:**

- My function is located in the `backend/events/wixEcom.js` file.
- I’ve published all changes and ensured the site is live.
- I’m using the Wix Stores app to manage orders.
- There’s no error in the console, but the handler is simply not firing.
- Eventually, I intend to send the order data to an external API for supplier fulfillment.

 ![image](https://us1.discourse-cdn.com/wix/original/3X/1/4/1421c3306be0ce8923665420dc935069e9ddade4.png)
