jQuery('#other_discount_code_tr').hide(); jQuery('#other_discount_code_p').html('<a id="other_discount_code_a" href="javascript:void(0);"><?php _e('Click here to change your discount code', 'pmpro'); ?> </a>.'); jQuery('#other_discount_code_p').show(); jQuery('#other_discount_code_a').click(function() { jQuery('#other_discount_code_tr').show(); jQuery('#other_discount_code_p').hide(); }); jQuery('#pmpro_level_cost').html('<?php printf(__('The <strong>%s</strong> code has been applied to your order.', 'pmpro'), $discount_code); echo pmpro_no_quotes(pmpro_getLevelCost($code_level), array('"', "'", "\n", "\r")); ?> '); <?php //tell gateway javascripts whether or not to fire (e.g. no Stripe on free levels) if (pmpro_isLevelFree($code_level)) { ?> pmpro_require_billing = false; <?php } else { ?> pmpro_require_billing = true; <?php } //hide/show billing
_e('Click here to change your discount code', 'pmpro'); ?> </a>.'); jQuery('#other_discount_code_p').show(); jQuery('#other_discount_code_a').click(function() { jQuery('#other_discount_code_tr').show(); jQuery('#other_discount_code_p').hide(); }); jQuery('#pmpro_level_cost').html('<p><?php printf(__('The <strong>%s</strong> code has been applied to your order.', 'pmpro'), $discount_code); ?> </p><p><?php echo pmpro_no_quotes(pmpro_getLevelCost($code_level), array('"', "'", "\n", "\r")); echo pmpro_no_quotes(pmpro_getLevelExpiration($code_level), array('"', "'", "\n", "\r")); ?> </p>'); <?php //tell gateway javascripts whether or not to fire (e.g. no Stripe on free levels) if (pmpro_isLevelFree($code_level)) { ?> pmpro_require_billing = false; <?php } else { ?> pmpro_require_billing = true; <?php } //hide/show billing
jQuery('#<?php echo $msgfield?>').show(); jQuery('#<?php echo $msgfield?>').removeClass('pmpro_error'); jQuery('#<?php echo $msgfield?>').addClass('pmpro_success'); jQuery('#<?php echo $msgfield?>').addClass('pmpro_discount_code_msg'); jQuery('#other_discount_code_tr').hide(); jQuery('#other_discount_code_p').html('<a id="other_discount_code_a" href="javascript:void(0);">Click here to change your discount code</a>.'); jQuery('#other_discount_code_p').show(); jQuery('#other_discount_code_a').click(function() { jQuery('#other_discount_code_tr').show(); jQuery('#other_discount_code_p').hide(); }); jQuery('#pmpro_level_cost').html('The <strong><?php echo $discount_code?></strong> code has been applied to your order. <?php echo pmpro_no_quotes(pmpro_getLevelCost($code_level), array('"', "'", "\n", "\r"))?>'); <?php //tell gateway javascripts whether or not to fire (e.g. no Stripe on free levels) if(pmpro_isLevelFree($code_level)) { ?> pmpro_require_billing = false; <?php } else { ?> pmpro_require_billing = true; <?php }