Jump to content

[SOLVED] Remove shipping in shopping cart. Only when checkout?


Recommended Posts

I get som irritating wrong valued shipping price when adding a product and then going to CART. If I choose CHECKOUT and proceed to shipping I get the correct value.

I have no shipping value with that value of 10usd. I have airmail 9usd.. No extra fee added in the shop. EMS lowest value are like 28usd.

Would like to either get this corrected, or to just remove the shipping value when going to the shopping cart.

Link to comment
Share on other sites

To remove shipping from the shopping cart summary, change lines 111-149 (in PrestaShop v1.3.2) of shopping-cart-tpl in your theme's directory from:

{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}
{if $use_taxes}

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


{l s='Total tax:'}
{displayPrice price=$total_tax}


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

{else}

{l s='Total:'}
{displayPrice price=$total_price_without_tax}

{/if}



to:

{*{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}*}
{if $use_taxes}

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


{l s='Total tax:'}
{displayPrice price=$total_tax}


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

{else}

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

{/if}

Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...

Prestashop 1.4

I did make 2 changes.

1- module blockcart/blockcart.php (for changing calculation).

After calculating 'total' i'm replacing 'total' with:

'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),



2- module blockcart/blockcart.tpl (for changing, delete display in the cart)
You can delete or mark the display of shipping.

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

 *}

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...

Hej jesuruiz,

My version is: 1.4.0.17.
Did you delete it???

Is your theme using another blockcart.tpl???

Have a look with firefox and firebug for the description. and do a search in all files for the description.

Good luck, i'm gonna celebrate midsummer now.

Link to comment
Share on other sites

Thanks for your answer Arieswe ;)

The funny thing is that although I delete several lines from the blockcart.tpl, this still shows the same O_o

I've looked several times with Firebug code, and clearly states:



that is the same as you've indicated in your previous post, but nothing.

I will keep looking, because something else put in the code will not work for your solution. Although it is strange ...

Link to comment
Share on other sites

Arieswe, are God.

Indeed, activating that option, and if it shows the changes.

Now would be ideal, that the word transport and the costs will be, when we choose the process of transport in the Cart.
I have read in a message to this forum to do so. But for now, the main thing I've solved thanks to you.

Pardon for my english.

A greeting and thanks for the help ;)

Link to comment
Share on other sites

  • 2 months later...

Please warning with uhupage templates

 

I've bought this one

 

http://www.uhupage.c...?id_product=158

 

and i've too much problems !! he doesn't want to refund so i'm searching persons who are disppointed to build a case.thank you

 

 

we are a lot :

 

http://www.prestashop.com/forums/topic/110610-petit-coup-de-gueule-concernant-les-themes-uhupage/

 

http://www.prestashop.com/forums/topic/128321-uhupage-templates/page__gopid__624465#entry624465

Link to comment
Share on other sites

Please warning with uhupage templates

 

I've bought this one

 

http://www.uhupage.c...?id_product=158

 

and i've too much problems !! he doesn't want to refund so i'm searching persons who are disppointed to build a case.thank you

 

 

we are a lot :

 

http://www.prestashop.com/forums/topic/110610-petit-coup-de-gueule-concernant-les-themes-uhupage/

 

http://www.prestashop.com/forums/topic/128321-uhupage-templates/page__gopid__624465#entry624465

Link to comment
Share on other sites

  • 3 months later...

Prestashop 1.4

I did make 2 changes.

1- module blockcart/blockcart.php (for changing calculation).

After calculating 'total' i'm replacing 'total' with:

'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),

2- module blockcart/blockcart.tpl (for changing, delete display in the cart)

You can delete or mark the display of shipping.

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

 *}

 

 

 

Thank you !!! :D HAPPY !!

For version 1.4.5.1

 

to blockart.tpl remove:

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

 

and to blockart.php replace:

   	 'total' => Tools::displayPrice($totalToPay, $currency),

to

  'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),

 

www.iltshop.it

 

it's perfect !!!

  • Like 2
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
  • 7 months later...
  • 5 months later...

Thankyou very much !!.. 

 

i'm using presta 1.5.5 and it's works like a charm !.. 

it's only for cart at the right page.. not cart summary

after several times i'm trying.. finally.. 

 

FYI, 

 

1st. open blockcart.tpl at your /modules/blockcart and also your /themes/nameofthemes/modules/blockcart and edit this line, make it inactive with comment tag or delete

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

2nd. find this line in the same files, 

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

and edit to

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

3rd.  find this line

<span class="ajax_cart_total" {if $cart_qties == 0}style="display:none"{/if}>
   {if $cart_qties > 0}
   {if $priceDisplay == 1}
   {convertPrice price=$cart->getOrderTotal(false)}
	{else}
   {convertPrice price=$cart->getOrderTotal(true)}
         {/if}
   {/if} 
</span>

 and change to

<span class="ajax_cart_total" {if $cart_qties == 0}style="display:none"{/if}>
			{$product_total}
</span>

4th. edit ajax-cart.js in /modules/blockcart and find this line

$('.ajax_block_cart_total').text(jsonData.total);

change to

$('.ajax_block_cart_total').text(jsonData.productTotal);

and incording to Arieswie and bbboos, open blockcart.php replace this

 'total' => Tools::displayPrice($totalToPay, $currency),

to

'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),

and voila.. try to reload the page or clear smartycache and cart module doesn't include shipping anymore..   :)

Edited by satriyoz (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Thankyou very much !!.. 

 

i'm using presta 1.5.5 and it's works like a charm !.. 

it's only for cart at the right page.. not cart summary

after several times i'm trying.. finally.. 

 

FYI, 

 

1st. open blockcart.tpl at your /modules/blockcart and also your /themes/nameofthemes/modules/blockcart and edit this line, make it inactive with comment tag or delete

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

2nd. find this line in the same files, 

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

and edit to

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

3rd.  find this line

<span class="ajax_cart_total" {if $cart_qties == 0}style="display:none"{/if}>
   {if $cart_qties > 0}
   {if $priceDisplay == 1}
   {convertPrice price=$cart->getOrderTotal(false)}
	{else}
   {convertPrice price=$cart->getOrderTotal(true)}
         {/if}
   {/if} 
</span>

 and change to

<span class="ajax_cart_total" {if $cart_qties == 0}style="display:none"{/if}>
			{$product_total}
</span>

4th. edit ajax-cart.js in /modules/blockcart and find this line

$('.ajax_block_cart_total').text(jsonData.total);

change to

$('.ajax_block_cart_total').text(jsonData.productTotal);

and incording to Arieswie and bbboos, open blockcart.php replace this

 'total' => Tools::displayPrice($totalToPay, $currency),

to

'total' => Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency),

and voila.. try to reload the page or clear smartycache and cart module doesn't include shipping anymore..   :)

Hi,

this solution work fine on PrestaShop 1.6.0.9?? :unsure:

Link to comment
Share on other sites

  • 5 months later...
  • 1 year later...
  • 7 months later...

Using 1.6 the solution is the same. Here is what I did (I'm talking about shopping_cart.tpl here):

 

put the shipping cost in the table in comment

                {*********************************************************
                {if $total_shipping_tax_exc <= 0 && !isset($virtualCart)}
                ... shipping display logic here ...
                {/if}
                *********************************************************}

Then at the bottom of the table where the total is display I did this:

                    {if $use_taxes}
                        <td colspan="3" id="total_price_container">
                            <div id="total_price_label">{l s='Total'}</div>
                            <div id="total_price" class="price">{displayPrice price=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)}</div>
                            {* <div id="total_price" class="price">{displayPrice price=$total_price}</div> *}
                        </td>
                    {else}
                        <td colspan="3" id="total_price_container">
                            <div id="total_price_label">{l s='Total'}</div>
                            <div id="total_price" class="price">{displayPrice price=$cart->getOrderTotal(false, Cart::BOTH_WITHOUT_SHIPPING)}</div> {* Tools::displayPrice($params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING), $currency) *}
                            {* <div id="total_price" class="price">{displayPrice price=$total_price_without_tax}</div> *}
                        </td>
                    {/if}

I'm not using the default theme so it may be different. but the price display is the same

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

  • 11 months later...

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