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://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
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:
And replace no.: 100 (showed characters on this catalog page).
I'm using value 200
I hope that it's useful.
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) . '..',
I'm using value 200
Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
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???
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.
This worked very well for me, I used the value 300, and that was a perfect fit for my application. Thank you!orieszkowicz wrote: Open folder : catalog/controller/product/
Edit file: category.php
arround line 186 found this:And replace no.: 100 (showed characters on this catalog page).Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
I'm using value 200
That did it for me, thank you.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:And replace no.: 100 (showed characters on this catalog page).Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
I'm using value 200
I hope that it's useful.Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
Thank you,
Sully
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..sully210 wrote:That did it for me, thank you.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:And replace no.: 100 (showed characters on this catalog page).Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
I'm using value 200
I hope that it's useful.Code: Select all
'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 200) . '..',
Who is online
Users browsing this forum: No registered users and 110 guests