Steve Posted February 3, 2020 Share Posted February 3, 2020 Bonjour, Je ne trouve pas le moyen de rallonger les titres de produits en page d'accueil et catégorie. Ils sont actuellement tronqués à 30 caractères. J'avais la technique pour les version antérieures à la 1.7.6.3 mais ça ne fonctionne plus... Merci pour votre aide Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 3, 2020 Share Posted February 3, 2020 il y a 14 minutes, Steve a dit : J'avais la technique pour les version antérieures à la 1.7.6.3 mais ça ne fonctionne plus... Ah oui, la fameuse technique d'avant ! Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 3, 2020 Share Posted February 3, 2020 Link to comment Share on other sites More sharing options...
Steve Posted February 3, 2020 Author Share Posted February 3, 2020 Just now, Mediacom87 said: Ah oui, la fameuse technique d'avant ! Celle de modifier le nombre après truncate dans le thème > classic> template> produits... Link to comment Share on other sites More sharing options...
Steve Posted February 3, 2020 Author Share Posted February 3, 2020 1 minute ago, Mediacom87 said: Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 3, 2020 Share Posted February 3, 2020 il y a 3 minutes, Steve a dit : Celle de modifier le nombre après truncate dans le thème > classic> template> produits... Bon, je m'occupe de d'upgrade ma version de test vers cette 1.7.6.3et je vais tester cela car, pour moi, il n'y a aucune raison que cela ne fonctionne pas. Link to comment Share on other sites More sharing options...
Steve Posted February 3, 2020 Author Share Posted February 3, 2020 Just now, Mediacom87 said: Bon, je m'occupe de d'upgrade ma version de test vers cette 1.7.6.3et je vais tester cela car, pour moi, il n'y a aucune raison que cela ne fonctionne pas. Super, merci Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 3, 2020 Share Posted February 3, 2020 Donc je confirme, je viens de tester en réduisant à 10 caractères mes truncate et hop, après vidage du cache c'ets bien le résultat que j'ai Link to comment Share on other sites More sharing options...
Steve Posted February 3, 2020 Author Share Posted February 3, 2020 Et en augmentant à 100 par exemple ? SI tu peux me rappeler le fichier exact à modifier stp ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 3, 2020 Share Posted February 3, 2020 il n'y a pas de raison que cela ne focntionne pas à 100. dans le template catalog/_partials/miniatures/porducts.tpl je crois. Link to comment Share on other sites More sharing options...
Steve Posted February 3, 2020 Author Share Posted February 3, 2020 50 minutes ago, Mediacom87 said: il n'y a pas de raison que cela ne focntionne pas à 100. dans le template catalog/_partials/miniatures/porducts.tpl je crois. Merci pour ton aide Link to comment Share on other sites More sharing options...
Thib2WP Posted February 3, 2020 Share Posted February 3, 2020 3 hours ago, Mediacom87 said: il n'y a pas de raison que cela ne focntionne pas à 100. dans le template catalog/_partials/miniatures/porducts.tpl je crois. c'est ça, moi je l'ai modifié à 60 pour avoir deux lignes. Link to comment Share on other sites More sharing options...
Thib2WP Posted February 3, 2020 Share Posted February 3, 2020 si ça intéresse des gens, je vous mes mon fichier product.tpl que j'ai modifié pour avoir le bouton panier etc. Il y a en grande partie le css inséré sur l'élément mais il faudra sûrement augmenter la taille de votre fiche. {** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name='product_miniature_item'} <article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product"> <div class="thumbnail-container"> {block name='product_thumbnail'} {if $product.cover} <a href="{$product.canonical_url}" class="thumbnail product-thumbnail"> <img src="{$product.cover.bySize.home_default.url}" alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}" data-full-size-image-url="{$product.cover.large.url}" /> </a> {else} <a href="{$product.canonical_url}" class="thumbnail product-thumbnail"> <img src="{$urls.no_picture_image.bySize.home_default.url}" /> </a> {/if} {/block} <div class="product-description"> {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title" itemprop="name"><a href="{$product.canonical_url}">{$product.name|truncate:60:'...'}</a></h3> {else} <h2 class="h3 product-title" itemprop="name"><a href="{$product.canonical_url}">{$product.name|truncate:60:'...'}</a></h2> {/if} {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping"> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span> <span class="regular-price">{$product.regular_price}</span> {if $product.discount_type === 'percentage'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if} {/if} {hook h='displayProductPriceBlock' product=$product type="before_price"} <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span> <span itemprop="price" class="price">{$product.price}</span> {hook h='displayProductPriceBlock' product=$product type='unit_price'} {hook h='displayProductPriceBlock' product=$product type='weight'} </div> {/if} {/block} {block name='product_availability'} <span id="product-availability" style="display: block; text-align: center;"> {if $product.show_availability && $product.availability_message} {if $product.availability == 'available'} <i class="material-icons rtl-no-flip product-available"></i> {elseif $product.availability == 'last_remaining_items'} <i class="material-icons product-last-items"></i> {else} <i class="material-icons product-unavailable"></i> {/if} {$product.availability_message} {/if} </span> {/block} <form action="{$urls.pages.cart}" method="post"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" value="{$product.id_product}" name="id_product"> <input type="number" name="qty" value="1" class="input-group form-control" min="1" aria-label="{l s='Quantity' d='Shop.Theme.Actions'}" style="margin-top: 5px; margin-left: 5px; display: block; text-align: center; width: 60px;"> <button data-button-action="add-to-cart" {if !$product.add_to_cart_url}disabled{/if} class="btn btn-primary" style="margin-top :5px; margin-right: 5px; float: right;"><i class="material-icons shopping-cart" style="margin-right: 2px; margin-left: -4px;"></i>{l s='Add to cart' d='Shop.Theme.Actions'}</button> </form> {block name='product_reviews'} {hook h='displayProductListReviews' product=$product} {/block} </div> <!-- @todo: use include file='catalog/_partials/product-flags.tpl'} --> {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label}</li> {/foreach} </ul> {/block} <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down"> {block name='quick_view'} <a class="quick-view" href="#" data-link-action="quickview"> <i class="material-icons search"></i> {l s='Quick view' d='Shop.Theme.Actions'} </a> {/block} {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} </div> </div> </article> {/block} 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