Javascript Error cause by single quote on commented code
-
Just found this issue with commented javascript with single quote not properly escape.
frontend/order_button.php line 63
Error:
//wc_checkout_form.submit_error( ‘<div class=”woocommerce-error”>’ + errorThrown + ‘</div>’ );Solution:
<?php /*wc_checkout_form.submit_error( ‘<div class=”woocommerce-error”>’ + errorThrown + ‘</div>’ );*/ ?>Screenshot:
https://snag.gy/WAj19l.jpg
https://snag.gy/jPf9Nc.jpgThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Javascript Error cause by single quote on commented code’ is closed to new replies.