Support

Home Forums Event Espresso Premium HTML Tags in Payment Options Boxes

HTML Tags in Payment Options Boxes

Posted: August 5, 2013 at 9:33 am


Christopher Barnard

August 5, 2013 at 9:33 am

Hi,

Is there anyway of formatting text in the Payment Options info boxes such as HTML tags – or rather does anyone know how this feature could be added?

Chris


Josh

  • Support Staff

August 5, 2013 at 10:45 am

Hi Christopher,

The Payment Instructions boxes in the Payment settings will strip out html tags. You modify the gateway files to include your own custom HTML though.

For example if you wanted to change the check/money order payment instructions to include custom HTML, you can open up /gateways/check/check_payment_vars.php and look for:

<p class="instruct">
<?php echo stripslashes_deep(empty($check_payment_settings['check_instructions']) ? '' : $check_payment_settings['check_instructions'] ); ?>
</p>

and remove the echo statement there and replace with your custom HTML.

You can keep the check payment option from getting overwritten on an update by copying it to /wp-content/uploads/espresso/gateways.


Christopher Barnard

August 5, 2013 at 10:56 am

Great – I suppose if the client doesn’t have to update the instructions in the back-end this would be okay.

I’m assuming there’s no way to easily add the ability to use HTML tags – otherwise I guess you would have said 🙂

Chris


Dean

August 6, 2013 at 3:25 am

Hi Chris,

No there isnt an easy way to add HTML ability to the gateway fields. Sorry about that.

The support post ‘HTML Tags in Payment Options Boxes’ 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.

Event Espresso