Author Topic: Product Short Description Cut Off  (Read 2930 times)

aaronf

  • Beginner
  • *
  • Posts: 20
Product Short Description Cut Off
« on: October 29, 2011, 21:17:05 pm »
Hello everyone,
I've noticed that the default short product description cutoff in the category view on my VM2 installation has gotten a lot shorter than it was in 1.1.9. Is this something to do with my template, or can someone point me to how I can enlarge it? It cuts off at about 40 characters, and is way too short for me. Thanks!

Aaron

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3639
  • using Matomo instead of Google Analytics
Re: Product Short Description Cut Off
« Reply #1 on: October 29, 2011, 22:14:05 pm »
In the file ...\components\com_virtuemart\views\category\tmpl\default.php
around line 240: <?php echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...') ?>

But if you want to customize this view, use a renamed copy of 'default.php' to work with, i.e 'mydefault.php. Otherwise it will be overwritten, when you update to newer versions.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Kangelova

  • Beginner
  • *
  • Posts: 21
Re: Product Short Description Cut Off
« Reply #2 on: December 05, 2011, 13:57:09 pm »
Ok, this solves one of my issues with  "short description". There's something else, however for which I didn't want to open a new discussion. I need to style the text a bit there. Nothing fancy, just header and info beneath - couple od lines. I noticed I can't apply any HTML rules on the short descriptions...some ideas will be really helpful.