Jump to content

[SOLVED] Best seller block description


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...