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,
Torge
|
|
Hi. I got the same problem on Opencart 2.2.
What could be the solution ?
Thanks.
Radomir
|
|
Hi,
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.
BR,
ThemeBurn team
|
|
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,
Torge
|
|
Thanks for the correction Torge!
|
|
Glad to see everything is OK now!
BR,
ThemeBurn team
|
|