cheribibi Posted December 10, 2013 Share Posted December 10, 2013 Bonjour, Je voudrais savoir si c'est possible de modifier la mention ''Ajouter au panier'' par nous contacter lorsque le produit n'est pas disponible a la vente (Option/disponible à la vente : décoché dans backOffice) PrestaShop™ 1.5.4.0 Merci Link to comment Share on other sites More sharing options...
Bondaty and Co Posted December 10, 2013 Share Posted December 10, 2013 (edited) Dans votre product.pl et product-list.tpl: <span class="exclusive"> <span></span> {l s='Add to cart'} </span> remplacer Add to cart par Contact us puis dans le back office onglet traductions -> front office, faites la traduction dans product et product-list Vous pouvez même ajouter un lien vers le formulaire contact, dans ce cas remplacez tout par: <span class="button"> <span></span> <a href="{$link->getPageLink('contact', true)}" title="{l s='Contact us' }">{l s='Contact us'}</a> </span> Edited December 10, 2013 by Bondaty and Co (see edit history) Link to comment Share on other sites More sharing options...
cheribibi Posted December 11, 2013 Author Share Posted December 11, 2013 Bonjour, Merci pour l'information 1 Link to comment Share on other sites More sharing options...
cheribibi Posted January 20, 2014 Author Share Posted January 20, 2014 Bonjour, Il faudrait également que je fasse cette modification pour les produits associés, est-ce possible voici le code partie accessoires du product.tpl <!-- accessories --> <ul id="idTab4" class="bullet"> <div class="block products_block accessories_block clearfix"> <div class="block_content"> <ul> {foreach from=$accessories item=accessory name=accessories_list} {if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} <li class="ajax_block_product {if $smarty.foreach.accessories_list.first}first_item{elseif $smarty.foreach.accessories_list.last}last_item{else}item{/if} product_accessories_description"> <p class="s_title_block"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}">{$accessory.name|escape:'htmlall':'UTF-8'}</a> {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} - <span class="price">{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}</span>{/if} </p> <div class="product_desc"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{$accessory.legend|escape:'htmlall':'UTF-8'}" class="product_image"><img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium_default')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /></a> <div class="block_description"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='More'}" class="product_description">{$accessory.description_short|strip_tags|truncate:400:'...'}</a> </div> <div class="clear_product_desc"> </div> </div> <p class="clearfix" style="margin-top:5px"> <a class="button" href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {if !$PS_CATALOG_MODE} <a class="exclusive button ajax_add_to_cart_button" href="{$link->getPageLink('cart', true, NULL, "qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add")}" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} </p> </li> {/if} {/foreach} </ul> </div> </div> </ul> {/if} 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