paleoglobe Posted April 25, 2024 Share Posted April 25, 2024 (edited) Hi all, is it possible to add a subtitle for products (both on homepage as on category pages)? In the picture below you see my title and price below that. I would like to have this subtitle between the title and the price. It is ok to use the summary field for this Thanks Christophe Edited April 25, 2024 by paleoglobe (see edit history) Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 26, 2024 Share Posted April 26, 2024 Hi, The template files responsible for displaying products on the homepage and category pages are typically found in your theme's directory under templates/catalog/_partials/ Within the template file, you'll find the HTML structure that displays each product. In the appropriate location within the template file, add code to display the subtitle for each product. You may need to retrieve the subtitle data from the product object. Hope this helps! Thanks! Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 27, 2024 Share Posted April 27, 2024 Il y a 23 heures, AddWeb Solution a dit : The template files responsible for displaying products on the homepage and category pages are typically found in your theme's directory under templates/catalog/_partials/ It's file templates/catalog/_partials/miniatures/product.tpl and modify code {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h3> {else} <h2 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2> {/if} {/block} with something like {$product.description_short|escape:'html':'UTF-8'|truncate:30:'...' nofilter} where you want to display 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