CamilleFr Posted March 20, 2013 Share Posted March 20, 2013 (edited) Bonjour, Je découvre Prestashop, et j'ai beaucoup de mal avec smarty. Je voudrais donc modifier la partie "résumé" du récapitulatif de commande (en gros, la page où s'affiche le panier avant validation) : quel fichier .tpl dois-je alors modifier ? En fait je voudrais supprimer les lignes "Total produits HT" et "Transport", ainsi que modifier "Total taxes" en "Total TVA". Merci d'avance ! Edited March 20, 2013 by CamilleFr (see edit history) Link to comment Share on other sites More sharing options...
Bondaty and Co Posted March 20, 2013 Share Posted March 20, 2013 Jetez un oeil vers le order-detail.tpl de votre thème, vous trouverez le tableau correspondant Link to comment Share on other sites More sharing options...
CamilleFr Posted March 20, 2013 Author Share Posted March 20, 2013 Merci beaucoup ! Je fonce voir ce fichier ! Link to comment Share on other sites More sharing options...
CamilleFr Posted March 20, 2013 Author Share Posted March 20, 2013 (edited) Par contre j'ai beau chercher, je ne trouve pas quoi supprimer pour enlever ces lignes. Je suis vraiment perdue face à ce langage. :/ J'ai supprimé ce qui me semblait juste : <tr class="item"><td colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}"> {l s='Total gift-wrapping:'} <span class="price-wrapping">{displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency}</span> </td> </tr> {/if} <tr class="item"> <td colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}"> {l s='Total shipping'} {if $use_tax}{l s='(tax incl.)'}{/if}: <span class="price-shipping">{displayWtPriceWithCurrency price=$order->total_shipping currency=$currency}</span> </td> Mais ça ne fait aucun effet sur le rendu final, les lignes sont toujours là. Edited March 20, 2013 by CamilleFr (see edit history) Link to comment Share on other sites More sharing options...
Superbegood31 Posted March 20, 2013 Share Posted March 20, 2013 Pensez à vider le cache Link to comment Share on other sites More sharing options...
CamilleFr Posted March 20, 2013 Author Share Posted March 20, 2013 C'est fait (enfin, normalement) mais ça ne fonctionne toujours pas. Link to comment Share on other sites More sharing options...
Superbegood31 Posted March 20, 2013 Share Posted March 20, 2013 Si il s'agit du récapitulatif de commande, le tpl est shopping-cart.tpl Et les lignes à supprimer sont : Pour Total produit HT {if $use_taxes} {if $priceDisplay} <tr class="cart_total_price"> <td colspan="5">{if $display_tax_label}{l s='Total products (tax excl.):'}{else}{l s='Total products:'}{/if}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td> </tr> {else} <tr class="cart_total_price"> <td colspan="5">{if $display_tax_label}{l s='Total products (tax incl.):'}{else}{l s='Total products:'}{/if}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td> </tr> {/if} {else} <tr class="cart_total_price"> <td colspan="5">{l s='Total products:'}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td> </tr> {/if} Pour Transport {if $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery"> <td colspan="5">{l s='Shipping:'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> {else} {if $use_taxes} {if $priceDisplay} <tr class="cart_total_delivery" {if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="5">{if $display_tax_label}{l s='Total shipping (tax excl.):'}{else}{l s='Total shipping:'}{/if}</td> <td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td> </tr> {else} <tr class="cart_total_delivery"{if $total_shipping <= 0} style="display:none;"{/if}> <td colspan="5">{if $display_tax_label}{l s='Total shipping (tax incl.):'}{else}{l s='Total shipping:'}{/if}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td> </tr> {/if} {else} <tr class="cart_total_delivery"{if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="5">{l s='Total shipping:'}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td> </tr> {/if} {/if} Quant à la modification de "Total taxes" en "Total TVA" Il vous suffit simplement de faire la modification depuis le BO/traductions/FO Recherchez Total tax: et vous mettez Total TVA : Link to comment Share on other sites More sharing options...
CamilleFr Posted March 20, 2013 Author Share Posted March 20, 2013 (edited) Aaaah ça fonctionne ! Merci beaucoup Swichboard, ça fait 2 jours que je cherche en vain. Edited March 26, 2013 by CamilleFr (see edit history) 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