babyewok Posted July 19, 2010 Share Posted July 19, 2010 If I use {$product.description_short} I see the short description in the best seller block. However, if I use {$product.description|strip_tags|truncate:82:'...'} No description is shown. I am trying to avoid the need to write the short description, so would like to just grab a snippet from the main description. This works elsewhere - why not for the best seller block? Link to comment Share on other sites More sharing options...
razaro Posted July 19, 2010 Share Posted July 19, 2010 Try to change in blockbestsellers.php line $bestsellers = ProductSale::getBestSalesLight(intval($params['cookie']->id_lang), 0, 5); to $bestsellers = ProductSale::getBestSales(intval($params['cookie']->id_lang), 0, 5); Light version of function doesn't get full description from database.So then you can in tpl file you can use $product.description Link to comment Share on other sites More sharing options...
babyewok Posted July 20, 2010 Author Share Posted July 20, 2010 Works perfectly - thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now