Extra Product Fields – 1st and last character of the field are cut of

ThemeBurn SupportForumsOpenCart ThemesKiddos OpenCart ThemeExtra Product Fields – 1st and last character of the field are cut of

This topic has been marked as resolved.

Dear TB-support,

first of all: Thanks for making your theme work with OC3 finally. I was really looking forward to it as it’s really by far the best theme I ever used.

I got one problem still: When adding Extra Product Fields the content is stored in the database correctly. However, in the final source code 1st and last character of field content is missing. For example when I add as a custom field:

<h2>Test Headline</h2>
<p>Test body text</p>

This gets stored correctly in the database. However, when I take a look at the source code of the resulting HTML page it contains just the following:

h2>Test Headline</h2>
<p>Test body text</p

This leads to many problems as you could image as the code is broken.
Do you have any clue as to why this happens?

Thanks & best,

August 31, 2018 at 3:20 pm #65271

Hi. I got the same problem on Opencart 2.2.
What could be the solution ?



September 3, 2018 at 10:17 am #65280


Thanks for reporting the problem. It seems we’ve introduced a bug in the latest theme version. Please follow these steps to fix it:

1) Open system/vendor/BurnEngine/extension/product_fields/widget/ProductFieldSystemWidget.php

2) Find this code line and remove it:

$content = trim($content, '<p><br></p>');

3) Find this code line:

if (!empty($content)) {

and change it to:

if (!empty($content) && $content != '<p><br></p>') {

This should fix the problem.

ThemeBurn team

September 3, 2018 at 2:41 pm #65282

Dear TB-support,

perfect – thanks a lot for the quick solution. For others having this bug, please note that the code you have to find and replace (step 3) is

if (!empty($content)) {

Keep up the great work guys!

Thanks & best,

September 3, 2018 at 3:13 pm #65283

Thanks for the correction Torge! :)

September 3, 2018 at 3:20 pm #65285

Thanks. Works for me :)

September 4, 2018 at 10:54 am #65324

Glad to see everything is OK now!

ThemeBurn team

September 11, 2018 at 3:03 pm #65386
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.