Post by sirszor » Sun Mar 06, 2011 12:21 am

Hi,
I would like to make longer product descriptions. Unfortunatelly opencart cut the end of my product description. I need extra long text field. How can I modify it?
Thank you for help,

Newbie

Posts

Joined
Sun Mar 06, 2011 12:15 am

Post by Chones » Sun Mar 06, 2011 1:12 am

Are you sure Opencart cut the end off? You can have a really long product description with Opencart, as you can see here in the demo:
http://demo.opencart.com/index.php?rout ... uct_id=100

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by sirszor » Sun Mar 06, 2011 1:18 am

Yes, Opencart cut off end of description. My description text is more longer (3x - 4x) or than you can see in demo. I would like to list all devices what my product support.

Newbie

Posts

Joined
Sun Mar 06, 2011 12:15 am

Post by Qphoria » Sun Mar 06, 2011 2:45 am

You'd need to change the "TEXT" field in the database to "LONGTEXT" using phpmyadmin in your cpanel
But I don't recommend it. Better instead to include a txt file with all the devices that people can't choose to view

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by sirszor » Sun Mar 06, 2011 3:38 am

Thank you, :good:

Newbie

Posts

Joined
Sun Mar 06, 2011 12:15 am

Post by orieszkowicz » Sat Oct 15, 2011 2:22 am

My issue was same.

I found another option how show longer desc. in catalog page.

Open folder : catalog/controller/product/
Edit file: category.php

arround line 186 found this:

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
And replace no.: 100 (showed characters on this catalog page).
I'm using value 200

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
I hope that it's useful.

Newbie

Posts

Joined
Sat Oct 15, 2011 2:18 am

Post by clark5188 » Wed Apr 25, 2012 9:57 am

yes it's really helpful. I have used your way and it works well.
But there is one more problem, if i set the product list image size 90x90, the product grid image size is also changed to 90x90px, this is not good. What I want is, set list image 90x90 and display a longer description. Set grid image size 120x120, it looks more pretty.

Is there a way to set the list image size & grid image size separately???

http://www.joyawatch.com China fashion watches online wholesale & oem.


User avatar
New member

Posts

Joined
Tue Dec 07, 2010 10:49 am
Location - China

Post by allenmcb » Sat Dec 22, 2012 2:01 am

orieszkowicz wrote: Open folder : catalog/controller/product/
Edit file: category.php

arround line 186 found this:

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
And replace no.: 100 (showed characters on this catalog page).
I'm using value 200
This worked very well for me, I used the value 300, and that was a perfect fit for my application. Thank you!

User avatar
New member

Posts

Joined
Fri Dec 07, 2012 8:18 am

Post by sully210 » Fri Oct 11, 2013 10:32 pm

orieszkowicz wrote:My issue was same.

I found another option how show longer desc. in catalog page.

Open folder : catalog/controller/product/
Edit file: category.php

arround line 186 found this:

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
And replace no.: 100 (showed characters on this catalog page).
I'm using value 200

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
I hope that it's useful.
That did it for me, thank you.

Thank you,
Sully :)


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 4:46 am
Location - USA

Post by johnallenmoore » Thu May 08, 2014 9:32 am

sully210 wrote:
orieszkowicz wrote:My issue was same.

I found another option how show longer desc. in catalog page.

Open folder : catalog/controller/product/
Edit file: category.php

arround line 186 found this:

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
And replace no.: 100 (showed characters on this catalog page).
I'm using value 200

Code: Select all

'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
I hope that it's useful.
That did it for me, thank you.
Don't forget to change the "search.php" in the same folder of 'catalog/controller/product' around line 256. A resulting search of the product will still have the truncated 100..


Posts

Joined
Thu May 08, 2014 9:29 am
Who is online

Users browsing this forum: No registered users and 36 guests