Post by MZaitseva » Sun Jun 16, 2019 2:44 pm

Good morning guys,

I have attached a pic and my question.

How i can break and transfer this long desciprion line to next one (within the box)?

Veersion 3.0.2.0 with default template

Many thanks!

M

Attachments

line.jpg

line.jpg (87.25 KiB) Viewed 616 times

Last edited by MZaitseva on Sun Jun 16, 2019 5:34 pm, edited 1 time in total.

User avatar
New member

Posts

Joined
Tue Oct 23, 2018 3:15 am

Post by thekrotek » Sun Jun 16, 2019 4:03 pm

This isn't a description, this is title. Make it shorter and in the future NEVER create such a long titles.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by kestas » Sun Jun 16, 2019 4:57 pm

In file catalog/controller/product/product.php find line, approx 213:

Code: Select all

'text' => $product_info['name'],
replace it with:

Code: Select all

'text' => strlen($product_info['name']) > 10 ? utf8_substr($product_info['name'],0,10)."..." : $product_info['name'],
number "10" is how many characters you want to show.
Last edited by kestas on Sun Jul 07, 2019 7:15 pm, edited 1 time in total.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by MZaitseva » Sun Jun 16, 2019 5:34 pm

MANY THANKS, kestas!

I will come to you when i need professional help with my store in future!

User avatar
New member

Posts

Joined
Tue Oct 23, 2018 3:15 am

Post by kestas » Sun Jun 16, 2019 8:53 pm

MZaitseva wrote:
Sun Jun 16, 2019 5:34 pm
MANY THANKS, kestas!

I will come to you when i need professional help with my store in future!
You're welcome.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by paulfeakins » Mon Jun 17, 2019 7:27 pm

MZaitseva wrote:
Sun Jun 16, 2019 5:34 pm
MANY THANKS, kestas!
Ok but the problem is as @thekrotek says - you have tried to put a product description in the title field - don't do this!

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: jkitz and 14 guests