Implementing custom JS into WordPress based Project

Hi, how are you guys doing?

I am actually having trouble implementing a custom generator code into e-comm based WP project. So I am putting in a generator that creates random promo code for discounts but it crashes everytime someone clicks on the generate button.

I had to put it in under maintenance while the issue gets resolved. Please help me with this.


Hi Jay, we are doing well!

This is CoSpaces Edu forum. Please ask WordPress-related questions on their forums here.