Posted: August 21, 2018 at 10:15 am
|
Attempting to add promotion code to order. Code is spelled correctly and applied to the correct event. When I click submit promotional code – the dev console displays the following code – > Uncaught TypeError: PROMO.form_input.val is not a function Thanks for any help you can provide |
Hi, Does the site have any caching plugins configured to move/compress the JavaScript files? If so, it may help to disable that feature of the caching plugin. |
|
|
Like W3 Total Cache? |
Yes W3 Total cache has that feature, and other plugins do too. |
|
|
I disabled W3 and I still get the error ? |
You shouldn’t need to disable the whole plugin, just the part that does the minify treatment to the JavaScript files. Can you add a tester event to the site, set its ticket price to $1.00 so we can test a registration there? We may be able to narrow down what’s causing the error if we can view the console of that page. |
|
|
Oh I see! Thanks |
May I ask, can you (or whomever made the edits) restore the promotions.js file back to its original state? For example, here’s line 110 of the file on your site: The way forward will be to start with an unaltered plugin. If you continue to get JavaScript errors with an unaltered plugin we can investigate further. |
|
Further to the above, after you restore the file back to its original state, you’ll need to clear your browser’s cache and also the W3 total cache plugin’s cache so the corrections to the file will load. |
|
|
That did the trick. Thank you! |
The support post ‘Promotion Add-on Issue’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.