Can't use HTML in the description section of Payment Settings
I am trying to modify the payment description and would like to add 2 <br> to the description but x-cart keeps removing the html from the description. Anyway to use html in the description box?
|
Re: Can't use HTML in the description section of Payment Settings
Is it removing it from the admin side, like taking it away from the input box, or is it just not rendering it on the front of the site?
2 different issues, for the first you would need to allow html in that field on the admin side, probably require some PHP decorating of that class, for the second you would need to edit the template. Both tasks are fairly easy to do if you are an experienced developer, but it would be tough otherwise. |
Re: Can't use HTML in the description section of Payment Settings
Quote:
You will need to modify the default/en/checkout/steps/shipping/parts/paymentMethod.tpl template and add the ":h" modifier to the {method.getDescription()} expression as follows. Code:
<div IF="{method.getDescription()}" class="payment-description">{method.getDescription():h}</div> |
All times are GMT -8. The time now is 01:13 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.