Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix HTML code not working in WordPress plugin

Discussion in 'Misc WordPress Requests' started by jacquesw54, Jan 16, 2018.

  1. jacquesw54


    HTML code not working in WordPress plugin, by jacquesw54

    Below is the code I’m trying to use on a pricing table payment button and it doesn’t work. I have also installed Don’t Muck my Markup, it still doesn’t work.

    <script language="JavaScript" type="text/javascript"> function click_b0585dca51f402af2a0fa3340436bc9b( aform_reference ) { var aform = aform_reference; aform['amount'].value = Math.round( aform['amount'].value*Math.pow( 10,2 ) )/Math.pow( 10,2 ); aform['custom_quantity'].value = aform['custom_quantity'].value.replace( /^\s+|\s+$/g,"" ); if( !aform['custom_quantity'].value || 0 === aform['custom_quantity'].value.length || /^\s*$/.test( aform['custom_quantity'].value ) ) { alert ( 'A quantity is required' ); return false; }aform['amount'].value *= parseInt( aform['custom_quantity'].value ); } </script> <form action="https://www.payfast.co.za/eng/process" name="form_b0585dca51f402af2a0fa3340436bc9b" onsubmit="return click_b0585dca51f402af2a0fa3340436bc9b( this );" method="post"> <input type="hidden" name="cmd" value="_paynow"> <input type="hidden" name="receiver" value="12492888"> <input type="hidden" name="item_name" value="Professional CV Writing Service within 4 days"> <input type="hidden" name="amount" value="485.00"> <input type="hidden" name="item_description" value=""> <input type="hidden" name="return_url" value="http://jirehgroup.co.za/home/professional-cv-writing-service/"> <input type="hidden" name="cancel_url" value="http://jirehgroup.co.za/home/professional-cv-writing-service/"> <table> <tr><td><font color="red">*</font>&nbsp;Quantity</td><td><input type="text" name="custom_quantity" class="qty" value="1"></td></tr> <tr><td colspan=2 align=center><input type="image" src="https://www.payfast.co.za/images/buttons/light-small-paynow.png" width="165" height="36" alt="Pay Now" title="Pay Now with PayFast"></td></tr></table> </form>

    HTML code not working in WordPress plugin

Share This Page

Monarch Social Sharing Plugin