Hi !
I have a problem with product short description length in list-view. I'm using "PAV Vigoss free theme" which configured with opencart 2.2 . In theme settings I have option that changes product description length, BUT It changes maximum to 150 characters. No matter If I set 600 or 500 or 300 - still turns only 150 characters. I've checked controller files in catalog/controller/product (category.php and etc.) - it's OK , I've tried to set 400 manually in these files - same result. Only 150 displayed. Also I've checked data type " product_description" in mysql , data type is "TEXT" and also OK.
Please help, what else can be wrong? How can I fix that?
P.s. If I set in theme option less than 150 character - it works (truncated). If for example 300 - only 150 displayed.
Big Thanks, Artsiom
I have a problem with product short description length in list-view. I'm using "PAV Vigoss free theme" which configured with opencart 2.2 . In theme settings I have option that changes product description length, BUT It changes maximum to 150 characters. No matter If I set 600 or 500 or 300 - still turns only 150 characters. I've checked controller files in catalog/controller/product (category.php and etc.) - it's OK , I've tried to set 400 manually in these files - same result. Only 150 displayed. Also I've checked data type " product_description" in mysql , data type is "TEXT" and also OK.
Please help, what else can be wrong? How can I fix that?
P.s. If I set in theme option less than 150 character - it works (truncated). If for example 300 - only 150 displayed.
Big Thanks, Artsiom
Try below solution,
To change product List Description Limit,
1. Go to your OpenCart admin panel > Extensions > Themes > Click on Edit button of your store
2. Set List Description Limit.
To change product List Description Limit,
1. Go to your OpenCart admin panel > Extensions > Themes > Click on Edit button of your store
2. Set List Description Limit.
Browse large collection of Premium OpenCart Themes
Was this also discovered in a custom theme or in the default theme of Opencart?acdc1 wrote:Problem solved. The settings in admin panel was ok . It was TPL file which truncated short description to 200 symbols separately from admin panel settings.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It was a template (TPL) file in a custom theme. I think that it's ok in default opencart settings, but I don't know exactly. The theme name "PAV Vigoss" and the path is : catalog/view/theme/pav_vigoss/template/common/product/default.tpl .
Changed code line:
Changed code line:
Also some css corrections was done. Maybe this info will help someone who uses the same theme.<p class="description"><?php echo utf8_substr( strip_tags($product['description']),0,500);?>...</p>
Last edited by straightlight on Tue Aug 02, 2016 8:25 pm, edited 1 time in total.
Reason: Added quote tags.
Reason: Added quote tags.
Who is online
Users browsing this forum: No registered users and 1 guest