Jump to content

Product short description not showing in product-list


Ray UK

Recommended Posts

Hi,

Ive been trying for a while to get the product short description to show in the product listing with no joy.

I have tried the following codes:

		<p>{$product_name}</p>
		<span>{$product_description_short nofilter}</span>
		<span>{$product_description nofilter}</span>
		<span>{$product.description_short nofilter}</span>
		<span>{$product.description nofilter}</span>

The product name is working fine, but none of the descriptions are showing anything.

Is there a class or something that needs editing to show this information.

Im using Prestashop 1.7.7.5

Thanks

Edited by MerseyRay
added ps version (see edit history)
Link to comment
Share on other sites

Hi,

What file are you editing? Code below works for me. I placed it in /catalog/_partials/miniatures/product.tpl

{$product.description_short nofilter}
{$product.description nofilter}

 

There is a chance that you have multiple product miniatures files and you are editing wrong one

Link to comment
Share on other sites

Hi Piotr,

Its a module that uses a custom hook inside the product-list.tpl

I have just looked in the module and found that I have to declare the variable in there.

$this->smarty->assign(array(
                    'product_name' => $product->name,
                    'product_desc' => $product->description_short

$this->smarty->assign(array(
                    'product_name' => $product->name,
                    'product_desc' => $product->description_short

This seems to have done the trick. I just thought the {$product.description nofilter} would work inside the module but it didnt.

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...