Brett06 Posted June 18, 2014 Share Posted June 18, 2014 Bonsoir a tous, j'aimerais un coup de main pour réaliser cela : J'aimerais supprimer d'image du produit que l'on a dans la page produit cote gauche, mais je voudrais qu'elle soit toujours présente dans produits phare ou nouveau ou dans une catégorie. juste la supprimer dans la page produit. Cela est il possible ?? Et center la partie Resume et Description et garder la partie prix et ajouter a ma liste sur le cote droit. Je suis sous Prestashop 1.6.0.7 Merci d'avance pour vos suggestion Link to comment Share on other sites More sharing options...
cedricfontaine Posted June 18, 2014 Share Posted June 18, 2014 Oui c'est possible. Il faut éditer le fichier du thème qui se nomme product.tpl Il faut supprimer toute la section suivante : <div id="image-block" class="clearfix"> {if $product->new} <span class="new-box"> <span class="new-label">{l s='New'}</span> </span> {/if} {if $product->on_sale} <span class="sale-box no-print"> <span class="sale-label">{l s='Sale!'}</span> </span> {elseif $product->specificPrice && $product->specificPrice.reduction && $productPriceWithoutReduction > $productPrice} <span class="discount">{l s='Reduced price!'}</span> {/if} {if $have_image} <span id="view_full_size"> {if $jqZoomEnabled && $have_image && !$content_only} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}" itemprop="url"> <img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {else} <img id="bigpic" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="span_link no-print">{l s='View larger'}</span> {/if} {/if} </span> {else} <span id="view_full_size"> <img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="span_link"> {l s='View larger'} </span> {/if} </span> {/if} </div> <!-- end image-block --> Link to comment Share on other sites More sharing options...
Brett06 Posted June 19, 2014 Author Share Posted June 19, 2014 Merci Cedric, d’avoir répondu et en plus ça marche, Si je peux abuser, un peut comment centrer la partie centrale sans toucher à la partie prix ? Merci d’avance Link to comment Share on other sites More sharing options...
Brett06 Posted June 19, 2014 Author Share Posted June 19, 2014 En fait j'aimerais déplacer sur la gauche la partie centrale tout en gardent la partie prix au même endroit. Je n'arrive pas a trouver la ligne qui permet de faire cela et quoi y mettre, Bien sûr je ne suis pas un expert en code. Je cherche avec Firefox et Firebug, mais je n'y arrive pas. Grrrrr 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