Issues with Carrier Return/Line Feed in product description when use Facebook for OpenCart Extension
Hello guys, this is a simple question, I have connected my store (www.rolistore.com) with my fanpage, but I can't resolve this:
I'm using HTML in the product description to format the text, but when the FB for OC submit the same description, it looks in only one line, I tried everything in the OC Product description, but nothing works.
for instance:
OC Product
https://www.rolistore.com/abyssus-lite-goliathus-mobile
FB Fanpage
https://www.facebook.com/marketplace/it ... 724912091/
Any Suggestion?
OC Version: 3.0.3.2
I'm using HTML in the product description to format the text, but when the FB for OC submit the same description, it looks in only one line, I tried everything in the OC Product description, but nothing works.
for instance:
OC Product
https://www.rolistore.com/abyssus-lite-goliathus-mobile
FB Fanpage
https://www.facebook.com/marketplace/it ... 724912091/
Any Suggestion?
OC Version: 3.0.3.2
If using an extension, contact the extension developer to resolved this issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
That extension strips all html tags from the description so it will look like that.
Then again, perhaps it is a FB requirement that the description does not contain html, so better check that before trying to change the extension.
Then again, perhaps it is a FB requirement that the description does not contain html, so better check that before trying to change the extension.
Code: Select all
$description = $this->facebookcommonutils->getProperFormattedString(
$product['description']);
Code: Select all
public function getProperFormattedString($text) {
if ((bool)$text) {
return trim(strip_tags(html_entity_decode(
html_entity_decode($text),
ENT_QUOTES | ENT_COMPAT,
'UTF-8')));
} else {
return '';
}
}
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Who is online
Users browsing this forum: No registered users and 11 guests