Ray UK Posted August 30, 2021 Share Posted August 30, 2021 (edited) 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 August 30, 2021 by MerseyRay added ps version (see edit history) Link to comment Share on other sites More sharing options...
Piotr3qx Posted August 30, 2021 Share Posted August 30, 2021 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 More sharing options...
Ray UK Posted August 30, 2021 Author Share Posted August 30, 2021 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 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