View Single Post
  #3  
Old 03-28-2016, 12:45 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Can't use HTML in the description section of Payment Settings

Quote:
Originally Posted by GlasPak
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?
Hi there.
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>
This will apply to offline payments only. If you need to use HTML in PayPal's description or other online payment, you will need to modify their own templates. Use Webmaster mode to identify the exact template to be edited.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote