Post by acdc1 » Mon Aug 01, 2016 7:10 pm

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

Newbie

Posts

Joined
Mon Aug 01, 2016 6:51 pm

Post by magikcommerce » Mon Aug 01, 2016 8:55 pm

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.

Browse large collection of Premium OpenCart Themes


User avatar
New member

Posts

Joined
Mon Feb 09, 2015 5:55 pm
Location - San Jose, CA

Post by acdc1 » Mon Aug 01, 2016 9:48 pm

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.

Newbie

Posts

Joined
Mon Aug 01, 2016 6:51 pm

Post by cyclops12 » Tue Aug 02, 2016 12:50 am

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.
Which file exactly was truncating the description ??

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by straightlight » Tue Aug 02, 2016 2:09 am

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.
Was this also discovered in a custom theme or in the default theme of Opencart?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by acdc1 » Tue Aug 02, 2016 4:55 am

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:
<p class="description"><?php echo utf8_substr( strip_tags($product['description']),0,500);?>...</p>
Also some css corrections was done. Maybe this info will help someone who uses the same theme.
Last edited by straightlight on Tue Aug 02, 2016 8:25 pm, edited 1 time in total.
Reason: Added quote tags.

Newbie

Posts

Joined
Mon Aug 01, 2016 6:51 pm

Post by cyclops12 » Tue Aug 02, 2016 2:28 pm

Glad you got it sorted and well done for posting up the solution, will certainly help others in future

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 3 guests