# Code in events.js not being triggered

**URL:** <https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159>\
**Category:** Ask the community\
**Tags:** question, code, wix-stores\
**Created:** [July 26, 2024, 6:00am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159 "2024-07-26T06:00:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihael\_Iljic](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mihael_iljic/32/83886_2.png) [@Mihael\_Iljic](https://forum.wixstudio.com/u/Mihael_Iljic)\
**Post date:** [July 26, 2024, 6:00am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/1 "2024-07-26T06:00:04Z")

</div>

**Question:**  
Has anybody experienced the issue that code placed in the events.js is not being triggered?

I have custom code there which is triggered once an order is paid (wixStores\_onOrderPaid) and tested even the new onOrderPaymentStatusUpdated( ) but none of them is working.  
It’s like the events.js is not even called at all.

I already contacted support but they haven’t replied so far.

**Product:**  
It’s precisely the events.js backend file which is triggered once a backend event happens such as “orderPaid”

**What are you trying to achieve:**  
I’m just trying to run a custom code which is calling some other custom functions - worked fine for over 6000 orders but now it simply stopped.

**What have you already tried:**  
I already tried to debug and use the function onOrderPaymentStatusUpdated( ) but there is literally no logs created (I made sure I have enough log files created to see if the code is actually triggered)

**Additional information:**  
WIX support hasn’t been able to help me so far - Just wanted to see if you have faced similar issues.

---

<div class="post-metadata">

**Author:** ![Tinh\_Hoa](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/tinh_hoa/32/87029_2.png) [@Tinh\_Hoa](https://forum.wixstudio.com/u/Tinh_Hoa)\
**Post date:** [July 26, 2024, 7:12am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/2 "2024-07-26T07:12:55Z")

</div>

Same problem over here. Have been raised this to Wix Support but no reply. This is destroying my work since I have to duplicate Orders to other CMS because of limitation of Wix App

---

<div class="post-metadata">

**Author:** ![Mihael\_Iljic](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mihael_iljic/32/83886_2.png) [@Mihael\_Iljic](https://forum.wixstudio.com/u/Mihael_Iljic)\
**Post date:** [July 26, 2024, 7:27am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/3 "2024-07-26T07:27:41Z")

</div>

Yeah same here - had to put my shop on hold and we aren’t able sell.

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [July 26, 2024, 8:49am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/4 "2024-07-26T08:49:59Z")

</div>

This seems to be a global problem, Wix are aware of it

---

<div class="post-metadata">

**Author:** ![Dussan\_Laxman](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dussan_laxman/32/80603_2.png) [@Dussan\_Laxman](https://forum.wixstudio.com/u/Dussan_Laxman)\
**Post date:** [July 26, 2024, 10:17am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/5 "2024-07-26T10:17:59Z")

</div>

thank you so much sharing your amazing post[.](https://vancedyoutube.org/)

---

<div class="post-metadata">

**Author:** ![Your\_Florist](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/your_florist/32/94808_2.png) [@Your\_Florist](https://forum.wixstudio.com/u/Your_Florist)\
**Post date:** [July 26, 2024, 11:51am UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/6 "2024-07-26T11:51:46Z")

</div>

same problem here. Also order number in thank you page suddenly disappeared too!!

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [July 26, 2024, 2:06pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/7 "2024-07-26T14:06:58Z")

</div>

Hey all!

If you haven’t already, I’d report it via [status.wix.com](http://status.wix.com), or open a bug report [here](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159).

I’ve also flagged it with the team.

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [July 26, 2024, 2:22pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/8 "2024-07-26T14:22:23Z")

</div>

To update - the team’s looking into it.

I’ll edit this post with more info as I have it 🙂

**EDIT** : The team just opened a Known Issue that you can follow and be updated when things are resolved - [Issues with events.js file Velo code not triggering | Help Center | Wix.com](https://support.wix.com/en/article/issues-with-eventsjs-file-velo-code-not-triggering)

Thanks for reporting it! 🙏

---

<div class="post-metadata">

**Author:** ![Mihael\_Iljic](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mihael_iljic/32/83886_2.png) [@Mihael\_Iljic](https://forum.wixstudio.com/u/Mihael_Iljic)\
**Post date:** [July 26, 2024, 4:48pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/9 "2024-07-26T16:48:51Z")

</div>

Can confirm it’s working again.

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://forum.wixstudio.com/u/Shaz)\
**Post date:** [July 26, 2024, 5:46pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/10 "2024-07-26T17:46:22Z")

</div>

Has anyone had any update on this yet?

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [July 26, 2024, 6:41pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/11 "2024-07-26T18:41:30Z")

</div>

Should be resolved, are you still experiencing problems?

---

<div class="post-metadata">

**Author:** ![Shaz](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shaz](https://forum.wixstudio.com/u/Shaz)\
**Post date:** [July 27, 2024, 1:03pm UTC](https://forum.wixstudio.com/t/code-in-events-js-not-being-triggered/61159/12 "2024-07-27T13:03:53Z")

</div>

i can confirm it is resolved now. thanks all
