mfs83 Posted March 29, 2022 Share Posted March 29, 2022 Bonjour j'aimerai changé dans produits phares de la page d'accueil le texte en dessous des articles. Au lieu d'avoir le pris j'aimerai ajouter "à partir de et mettre un prix...". Comment puis je procéder Merci🙂 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 29, 2022 Share Posted March 29, 2022 Sinon vous modifiez le template du module dans votre thème avec un simple test sur la page d'accueil. Link to comment Share on other sites More sharing options...
mfs83 Posted March 29, 2022 Author Share Posted March 29, 2022 je dois changer quoi alors merci Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 29, 2022 Share Posted March 29, 2022 il y a 17 minutes, mfs83 a dit : je dois changer quoi alors merci Dans themes/votretheme/templates/catalog/_partials/miniatures/product.tpl <span class="price" aria-label="{l s='Price' d='Shop.Theme.Catalog'}"> {capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='products_list'}{/capture} {if '' !== $smarty.capture.custom_price} {if $page.page_name=='index'}A partir de {/if}{$smarty.capture.custom_price nofilter} {else} {if $page.page_name=='index'}A partir de {/if}{$product.price} {/if} </span> Et voil@ PS: j'ai mis dans l'exemple en dur le message mais si vous voulez le traduire il faut utiliser {l s='Your message' d='Shop.Theme.Catalog'} Link to comment Share on other sites More sharing options...
mfs83 Posted March 29, 2022 Author Share Posted March 29, 2022 Merci je testerai demain bonne soirée Link to comment Share on other sites More sharing options...
mfs83 Posted March 30, 2022 Author Share Posted March 30, 2022 @Prestashop Addict excusez moi encore mais je l'insert où exactement car j'ai ceci Merci beaucoup et bonne journée {** * 2007-2017 PrestaShop * * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @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 mb-3" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}"> <div class="card card-product"> <div class="card-img-top product__card-img"> {block name='product_thumbnail'} <a href="{$product.url}" class="thumbnail product-thumbnail rc ratio1_1"> {if $product.cover} <img data-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}" class="lazyload" /> {elseif isset($urls.no_picture_image)} <img class="lazyload" src="{$urls.no_picture_image.bySize.home_default.url}" /> {else} <img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" /> {/if} </a> {/block} <div class="highlighted-informations text-center p-2{if !$product.main_variants} no-variants{/if} visible--desktop"> {block name='quick_view'} <span class="quick-view" data-link-action="quickview"> <i class="material-icons search"></i> {l s='Quick view' d='Shop.Theme.Actions'} </span> {/block} {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} </div> </div> {* end card-img-top*} <div class="card-body"> <div class="product-description product__card-desc"> {block name='product_name'} {if in_array($page.page_name, ['best-sales','category','manufacturer','new-products','prices-drop','product-list','search','supplier'])} <h2 class="h3 product-title"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h2> {else} <p class="h3 product-title"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></p> {/if} {/block} {block name='product_reviews'} {hook h='displayProductListReviews' product=$product} {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping text-center"> {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} {hook h='displayProductPriceBlock' product=$product type="before_price"} <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span> <span class="price{if $product.has_discount} current-price-discount{/if}">{$product.price}</span> {hook h='displayProductPriceBlock' product=$product type='unit_price'} {hook h='displayProductPriceBlock' product=$product type='weight'} {hook h='displayproductInListF' idproduct=$product.id_product} </div> {/if} {/block} </div> </div> {* end card body*} {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label}</li> {/foreach} {if $product.has_discount} {if $product.discount_type === 'percentage'} <li class="product-flag discount-percentage discount-product">{$product.discount_percentage}</li> {elseif $product.discount_type === 'amount'} <li class="product-flag discount-amount discount-product">{$product.discount_amount_to_display}</li> {/if} {/if} </ul> {/block} </div> {* end card product*} </article> {/block} Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 30, 2022 Share Posted March 30, 2022 il y a une heure, mfs83 a dit : @Prestashop Addict excusez moi encore mais je l'insert où exactement car j'ai ceci Merci beaucoup et bonne journée Là ce n'est plus de l'aide c'est de la formation 😞 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