Jump to content

Supprimer "Transport" du panier [PS 1.5]


Recommended Posts

Bonjour,

 

Je voudrais supprimer la ligne "Transport" dans l'affichage du panier.

J'ai essayé de suivre ce topic :

http://www.prestashop.com/forums/topic/77673-ne-pas-afficher-les-frais-de-ports-dans-le-panier/

Mais apparemment cette astuce ne fonctionne pas sur Prestashop 1.5.

 

Quelqu'un sait-il faire la transformation ?

Existe-t-il un module qui ferais ça ?

 

Merci.

Link to comment
Share on other sites

Voila la solution :

 

Pour le module panier (/modules/blockcart/blockcart.tpl) :

 

1/ Commenter les lignes 142 à 145 :

 

<!--
<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span>
<span>{l s='Shipping' mod='blockcart'}</span>
-->

 

2/ Remplacer l' appel de la classe "price ajax_block_cart_total" ligne 158 :

 

<span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span>

 

par :

 

<span id="cart_block_total" class="price ajax_cart_total">{$total}</span>

 

 

Pour le résumé de la commande (/themes/shopping-cart.tpl) :

 

1/ Commenter les lignes de 141 à 165 :

 

<!--   {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} -->

 

2/ Ajouter la variable "-$total_shipping_tax_exc" ligne 169 :

 

<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>

 

par :

 

<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax-$total_shipping_tax_exc}</td>

 

3/ Remplacer la variable "$total_price" ligne 208 :

 

<span id="total_price">{displayPrice price=$total_price}</span>

 

par :

 

<span id="total_price">{displayPrice price=$total_products_wt}</span>

 

3/ Remplacer la valeur "$total_price_without_tax" ligne 213 :

 

<span id="total_price">{displayPrice price=$total_price_without_tax}</span>

 

par :

 

<span id="total_price">{displayPrice price=$total_price_without_tax-$total_shipping_tax_exc}</span>

 

Merci à Insitweb.

Edited by MrAttila (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...