Jump to content

Question about shipping


Recommended Posts

Hi everyone,

Hoping someone can help me with my problem. I have looked around the forums but haven't found exactly what I need..

In the shopping cart block module, and shopping cart page I do not what shipping to appear at all. I only want shipping to appear in the checkout process when the user is asked to select a carrier.

From what I can tell so far, there doesn't seem to be a straight forward way to do this??

Any insight would be most appreciated.

Thanks

Link to comment
Share on other sites

You'll need to edit modules/blockcart/blockcart.tpl and change lines 92-103 (in PrestaShop v1.3.1) from:



{l s='Shipping' mod='blockcart'}
{$shipping_cost}


   {if $show_wrapping}
{l s='Wrapping' mod='blockcart'}
{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 6)}{else}{convertPrice price=$cart->getOrderTotal(true, 6)}{/if}


   {/if}
{l s='Total' mod='blockcart'}
{$total}



to:



{*    {l s='Shipping' mod='blockcart'}
{$shipping_cost}


   {if $show_wrapping}
{l s='Wrapping' mod='blockcart'}
{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 6)}{else}{convertPrice price=$cart->getOrderTotal(true, 6)}{/if}


   {/if}
*}    {l s='Total' mod='blockcart'}
{* {$total} *}{$product_total}



You'll also need to {* comment out *} lines [spam-filter]130 of shopping-cart.tpl:

{if $total_wrapping > 0}
   {if $use_taxes}
       {if $priceDisplay}

{l s='Total gift-wrapping (tax excl.):'}
{displayPrice price=$total_wrapping_tax_exc}

       {else}

{l s='Total gift-wrapping (tax incl.):'}
{displayPrice price=$total_wrapping}

       {/if}
   {else}

{l s='Total gift-wrapping:'}
{displayPrice price=$total_wrapping_tax_exc}

   {/if}
{/if}
{if $shippingCost > 0}
   {if $use_taxes}
       {if $priceDisplay}

{l s='Total shipping (tax excl.):'}
{displayPrice price=$shippingCostTaxExc}

       {else}

{l s='Total shipping (tax incl.):'}
{displayPrice price=$shippingCost}

       {/if}
   {else}

{l s='Total shipping:'}
{displayPrice price=$shippingCostTaxExc}

   {/if}
{/if}



You might need to modify order.php too to remove shipping from the total price.

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...