| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Can't use HTML in the description section of Payment Settings | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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?
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#2
|
|||||||||
|
|||||||||
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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
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:
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
|||
X-Cart forums © 2001-2020
|