79631930

Date: 2025-05-21 12:06:35
Score: 1.5
Natty:
Report link

To run the above code in WordPress you will probably need to change the '$' symbol in the JavaScript code to the string 'jQuery', to avoid clashes with the use of the dollar symbol for other purposes in WordPress.

i.e. $( '.variation-input' ) would become jQuery( '.variation-input' ), and $.ajax would become jQuery.ajax
and so on.

Do keep the dollar symbol in the PHP code though.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: peronius