Jump to content

Removing total shipping in the summary cart & cart block before logging in/putting in address


Recommended Posts

Hi

I was just wondering if anyone would be kindly enough to tell me how remove total default shipping in the summary cart and cart block which is shown automatically when you put an order in the cart. (So that the summary cart will only show total of products & discount/voucher when applicable and find out about their postage after they log in and put in their address). I found the default shipping cost is misleading when people are ordering from overseas.

I tried to delete the shipping cost from shopping-cart.tpl and while it didn't show the total shipping in the summary cart, the total still calculates the shipping. Will also need to remove it from the cart block as well.

I hope this makes sense, really appreciate any help,
Lollipop

Link to comment
Share on other sites

  • 2 months later...

Hello,

I was also interested in removing the shipping especially when using the UPS module which does not display accurate shipping until you login.

I have attached a new version of the blockcart.tpl file - backup your original and then overwrite the one in /modules/blockcart to see something close to the desired effect.


Does anyone know why at times it will continue to add in handling fees even though the file has been modified to display only the product total?

{$product_total}

blockcart.zip

  • Like 1
Link to comment
Share on other sites

You can try using the mod from
Post #2 , but it is not highly recommended for use with the Ajax cart as it does not update automatically when you add items to your cart - it will only update on a page refresh or when you navigate to a new page...

Link to comment
Share on other sites

I am also interested in this.
+1 for the ability to ignore shipping costs until after you are logged in, and only at the final checkout stage.

If there is a solution without touching too much delicate code, I would love to know.

Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...
  • 1 month later...
  • 6 months later...
  • 7 months later...
  • 3 weeks later...

Would be very interested in this for 1.4.x also. I offer free shipping on specific products - prestashop doesn't have that option built in so I have to play with different carriers that will offer that option on checkout - but when a product with the option of free shipping is added to the cart - the ajax for the cart block will show shipping for the FedEx options - would like to remove all shipping prices except when they get to that option in Checkout.

Link to comment
Share on other sites

Hi

I was just wondering if anyone would be kindly enough to tell me how remove total default shipping in the summary cart and cart block which is shown automatically when you put an order in the cart. (So that the summary cart will only show total of products & discount/voucher when applicable and find out about their postage after they log in and put in their address). I found the default shipping cost is misleading when people are ordering from overseas.

I tried to delete the shipping cost from shopping-cart.tpl and while it didn't show the total shipping in the summary cart, the total still calculates the shipping. Will also need to remove it from the cart block as well.

I hope this makes sense, really appreciate any help,

Lollipop

 

in classes/cart.php file in function

 

public function getOrderTotal($withTaxes = true, $type = Cart::BOTH)

 

 

if we find

 

$shipping_fees = ($type != Cart::BOTH_WITHOUT_SHIPPING AND $type != Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING) ? $this->getOrderShippingCost(NULL, (int)($withTaxes)) : 0;

 

and replace with

 

global $cookie;
if (isset($cookie->id_customer) && $cookie->isLogged() == true) {
       $shipping_fees = ($type != Cart::BOTH_WITHOUT_SHIPPING AND $type != Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING) ? $this->getOrderShippingCost(NULL, (int)($withTaxes)) : 0;
}

 

I guess this will solve your problem

 

Thanks

Delonix

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

use css rules/

find

modules/blockcart/blockcart.tpl

line 113

 

<p id="cart-prices">

replace

< p id="cart-prices" style="Display:none">

 

 

show in my site

www.sporttimedv.ru

 

or

www.sport.digo-shop.com

 

 

-------------------------------

 

IF need support service in prestashop - call me =)

Link to comment
Share on other sites

  • 1 year later...

I modified the Blockcart.tpl and the shopping-cart.tpl, By deleting the word 'Free Shipping' Leaving the punctuation marks.

 

What this did was.

 

Where it said's shipping, it would be blank until you log in, then it will give the shipping price.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Hi guys,

 

I'm running PrestaShop 1.5.4 version, and i want to show in my BlockCart the total price of products without shiiping price included.

 

So i want the BlockCart to show me something like this:

 

Product 1 ...........20$

Product 2 ...........35$

-------

Total price of products: 55$

Shipping price: 10$

Total price: 65$

 

So in my BlockCart i want to show above the Shipping price, the total price of products.

How can i do this? Please Help. Thx in advance.

Link to comment
Share on other sites

  • 4 months later...

Hi,

Here is a really simple solution that works very well.

 

And you do not need to modify any files manually.

Go to Localization > Translations

- Select Installed Module Translation, and then click on the Country Flag
- Find the Module: blockcart
- Change the Free Shipping text and enter something like a dash - or you could enter text like "Login to View" or something that is best suited for your shop.

Save this.

Now go to Localization > Translations
- Select Front Office Translations, and then click on the Country Flag.
- Find the areas where Free Shipping is written. An easy way to do this is "Ctrl F" on windows PC and you can find them all.
- Now only change the text for the ones you would like to change from "Free Shipping" to something else. For example just in the shopping-cart expressions section, change the Free Shipping Text.

Save This.

Now if you want to change the Text where you see your Carrier and it is still written "Free" then change it here: Go to order-opc-carrier still within the Translations area and change the text "Free", You could just write a dash - as the text or whatever else you would like.

Save This

This should make it alot better for you with Shipping, and you can experiment with the areas you want to change the text for.

Link to comment
Share on other sites

Hello, Sorry, can you help me to resolve the problem. I am running prestashop 1.5.5 version, i am gonna to sell a virtual products which don't need a shipping. How i can disable shiping??? Last posts what i read didn't helped me. Thank you.

 

you can add Handling charges to 0 at BO> shipping >shipping

Link to comment
Share on other sites

×
×
  • Create New...