Post by skip » Tue Jan 06, 2015 4:35 am

Im change my admin fax field to textarea successfuly but now got problem on frontpage .text is not shown exatcly as I enter in textarea -system does not recognize new line for example if I enter in my textarea:

some
text

it will show:
some text

What exatcly impact on textarea formating

thanx

opencart version 2.0.1.1

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by opencarthow.com » Wed Jan 07, 2015 6:10 pm

skip wrote:Im change my admin fax field to textarea successfuly but now got problem on frontpage .text is not shown exatcly as I enter in textarea -system does not recognize new line for example if I enter in my textarea:

some
text

it will show:
some text

What exatcly impact on textarea formating

thanx

opencart version 2.0.1.1
It seems that OpenCart strips format of your text. Could you take some screenshots about the problem so I can take a look at it closer?

Our free extensions:
Advanced Layout System, Display Raw Product Description in Product List, Minimum Order Amount Requirement, Add to Wish List Redirect for Anonymous Customer


User avatar
Active Member

Posts

Joined
Fri Nov 28, 2014 10:41 am


Post by skip » Wed Jan 07, 2015 7:44 pm

Thank you opencarthow.com - I was solved problem in meanwhile:
There is funkction in controller for such problems "nl2br"
so change:
'fax' => $location_info['fax']
to:
'fax' => nl2br($location_info['fax'])

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by opencarthow.com » Thu Jan 08, 2015 12:03 am

skip wrote:Thank you opencarthow.com - I was solved problem in meanwhile:
There is funkction in controller for such problems "nl2br"
so change:
'fax' => $location_info['fax']
to:
'fax' => nl2br($location_info['fax'])
Glad to hear that you figured out the problem :)

Our free extensions:
Advanced Layout System, Display Raw Product Description in Product List, Minimum Order Amount Requirement, Add to Wish List Redirect for Anonymous Customer


User avatar
Active Member

Posts

Joined
Fri Nov 28, 2014 10:41 am

Who is online

Users browsing this forum: Bing [Bot] and 63 guests