tuyote Posted February 10, 2016 Share Posted February 10, 2016 (edited) Bonjour, Dans une fiche produit, dès qu'un accessoire est lié, j'ai une table qui s'affiche ("Quantity Discount You save") dans les onglets "accessories", "download" et "avis" Comment je supprime cette table ? Merci Edited February 11, 2016 by tuyote (see edit history) Link to comment Share on other sites More sharing options...
tuyote Posted February 11, 2016 Author Share Posted February 11, 2016 Une idée ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 11, 2016 Share Posted February 11, 2016 Bonjour, vous semblez utiliser un template personnalisé, il faut donc regarder dans le code du fichier product.tpl pour trouver pourquoi ces éléments s'affichent. Link to comment Share on other sites More sharing options...
tuyote Posted February 12, 2016 Author Share Posted February 12, 2016 J'ai trouvé les lignes de code correspondantes à cette table, j'ai beau la supprimer dans le fichier product.tpl, elle reste active ? {if isset($accessories) AND $accessories} <!-- accessories --> <div id="idTab4" class="bullet"> <div id="quantityDiscount"> <table class="std table-product-discounts"> <thead> <tr> <th>{l s='Quantity'}</th> <th>{if $display_discount_price}{l s='Price'}{else}{l s='Discount'}{/if}</th> <th>{l s='You Save'}</th> </tr> </thead> <tbody> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <tr id="quantityDiscount_{$quantity_discount.id_product_attribute}" class="quantityDiscount_{$quantity_discount.id_product_attribute}" data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value|floatval}" data-discount-quantity="{$quantity_discount.quantity|intval}"> <td> {$quantity_discount.quantity|intval} </td> <td> {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {if $display_discount_price} {convertPrice price=$productPrice-$quantity_discount.real_value|floatval} {else} {convertPrice price=$quantity_discount.real_value|floatval} {/if} {else} {if $display_discount_price} {convertPrice price = $productPrice-($productPrice*$quantity_discount.reduction)|floatval} {else} {$quantity_discount.real_value|floatval}% {/if} {/if} </td> <td> <span>{l s='Up to'}</span> {if $quantity_discount.price >= 0 || $quantity_discount.reduction_type == 'amount'} {$discountPrice=$productPrice-$quantity_discount.real_value|floatval} {else} {$discountPrice=$productPrice-($productPrice*$quantity_discount.reduction)|floatval} {/if} {$discountPrice=$discountPrice*$quantity_discount.quantity} {$qtyProductPrice = $productPrice*$quantity_discount.quantity} {convertPrice price=$qtyProductPrice-$discountPrice} </td> </tr> {/foreach} </tbody> </table> </div> </div> Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 12, 2016 Share Posted February 12, 2016 il faut surtout comparer avec le code du template original pour comprendre comment ne pas les faire apparaitre si ces informations n'existes pas. Link to comment Share on other sites More sharing options...
tuyote Posted February 12, 2016 Author Share Posted February 12, 2016 J'ai supprimé les lignes de code dans le fichier product.tpl du template personnalisé et du template original, toujours aucune modification (Pourtant avec Firebug, quand je supprime ces mêmes lignes, la table s'efface) Je sèche mais je ne suis pas très doué non plus ^^ 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