makaraci Posted July 22, 2009 Share Posted July 22, 2009 helloi want to remove " shipping " from the cart.how can i do that ?Please look at the screenshots : Link to comment Share on other sites More sharing options...
Raver Posted July 23, 2009 Share Posted July 23, 2009 Hi,Try in modules , blockcart.php./* */comment the lines like...Shipping cost Link to comment Share on other sites More sharing options...
makaraci Posted July 23, 2009 Author Share Posted July 23, 2009 hello,i found this line :" 'shipping_cost' => Tools::displayPrice($params['cart']->getOrderTotal(true, 5), $currency), " and i edited is like " * 'shipping_cost' => Tools::displayPrice($params['cart']->getOrderTotal(true, 5), $currency),* "but it doesnt work ? Link to comment Share on other sites More sharing options...
Patric Posted July 23, 2009 Share Posted July 23, 2009 The problem is that removing only the line like this (by hidding it) won't modifiy the total. So you'll have :Blablabla 15 TL------------------Total 20 TLStrange... Link to comment Share on other sites More sharing options...
makaraci Posted July 23, 2009 Author Share Posted July 23, 2009 well,you mean cant i remove “ shipping “ from the cart ? Link to comment Share on other sites More sharing options...
makaraci Posted July 23, 2009 Author Share Posted July 23, 2009 any idea ?i dont want " shipping " in the cart. help me please. Link to comment Share on other sites More sharing options...
Raver Posted July 24, 2009 Share Posted July 24, 2009 Well, I assume you don't charge shipping, thus make shipping cost..in backoffice>shipping tab ..free shipping starts at $0 or such.but if you also don't want to show it in the cart like in your screenshot, do this:/*‘shipping_cost’ => Tools::displayPrice($params[‘cart’]->getOrderTotal(true, 5), $currency),*/but you may have to amend your invoice , if you do not want to show "shipping:$0" to customers.Hope it helps. Link to comment Share on other sites More sharing options...
peej Posted August 9, 2009 Share Posted August 9, 2009 Hi, I would like to remove the display of shipping costs as well. I want to show the total without shipping and tell the customer to continue the checkout process to see the real shipping cost. The reason is that I have several shipping carriers for different weight ranges. THe block cart only shows the carrier set as default carrier. When this is not in the weight range, it will display shipping cost = 0 (which is not correct). Of course the best solution would be to get the block cart to find the correct carrier. However, I guess that will be a great deal of work to fix. //PJ Link to comment Share on other sites More sharing options...
peej Posted August 9, 2009 Share Posted August 9, 2009 I found a way of removing the shipping cost from the block cart. You have to remove the shipping cost and replace the total with product total. The code should be like this:Blockcart.php: $smarty->assign(array( 'products'=> $products, 'customizedDatas' => Product::getAllCustomizedDatas(intval($params['cart']->id)), 'CUSTOMIZE_FILE' => _CUSTOMIZE_FILE_, 'CUSTOMIZE_TEXTFIELD' => _CUSTOMIZE_TEXTFIELD_, 'discounts' => $params['cart']->getDiscounts(false, true), 'nb_total_products' =>$params['cart']->nbProducts(), 'show_wrapping' => floatval($params['cart']->getOrderTotal(true, 6)) > 0 ? true : false, 'wrapping_cost' => Tools::displayPrice($params['cart']->getOrderTotal(intval(Configuration::get('PS_PRICE_DISPLAY')) == 1 ? false : true, 6), $currency), 'total' => Tools::displayPrice($params['cart']->getOrderTotal(intval(Configuration::get('PS_PRICE_DISPLAY')) == 1 ? false : true, 4), $currency), 'id_carrier' => $params['cart']->id_carrier, 'ajax_allowed' => intval(Configuration::get('PS_BLOCK_CART_AJAX')) == 1 ? true : false to remove the text you will have to remove the following code in blockcart.tpl: {l s='Shipping' mod='blockcart'} You still have to deal with the shipping cost in the shoppingcart though... I'm thinking of using a great module written by Aaron @ Geocachestore: http://www.prestashop.com/forums/viewthread/22423/modules___code_contributions/module_display_shipping_feescarriers_prior_to_checkout__ajax//PJ Link to comment Share on other sites More sharing options...
diamond204 Posted August 23, 2009 Share Posted August 23, 2009 This may also be of interest:http://www.prestashop.com/forums/viewthread/17189/ Link to comment Share on other sites More sharing options...
touchy Posted September 7, 2009 Share Posted September 7, 2009 Hi everybody,you can use the blockcartWoS Module from our germanEdition, see Screenshot.It's better, faster and it comes without any manually modifcations.See: http://www.homepage-community.de/index.php?topic=586.0 Link to comment Share on other sites More sharing options...
diamond204 Posted September 7, 2009 Share Posted September 7, 2009 Hi there,I went to that forum and registered but could not find any download link for the new cart. Do you know where the download is? Thanks Link to comment Share on other sites More sharing options...
diamond204 Posted April 20, 2010 Share Posted April 20, 2010 Updated with version for Prestashop 1.3.xhttp://www.prestashop.com/forums/viewthread/17189/#116724 Link to comment Share on other sites More sharing options...
popres Posted June 27, 2010 Share Posted June 27, 2010 Updated with version for Prestashop 1.3.xhttp://www.prestashop.com/forums/viewthread/17189/#116724 what is easiest for us with older versions ? Link to comment Share on other sites More sharing options...
popres Posted June 27, 2010 Share Posted June 27, 2010 Hi everybody,you can use the blockcartWoS Module from our germanEdition, see Screenshot.It's better, faster and it comes without any manually modifcations.See: http://www.homepage-community.de/index.php?topic=586.0 Good module but cant you just upload it here ?First visit another forum then a lot of hassle to register there..... Link to comment Share on other sites More sharing options...
alprmtlu Posted August 31, 2011 Share Posted August 31, 2011 This is how I removed all the informations about shipping: 1. Go to "blockcart.tpl" and comment out these lines: <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <br/> 2. In the same file, find this line: <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> and replace {$total} with {$product_total}: <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span> 3. probably the "AJAX mode" is on so you "must" edit also the "ajax-cart.js" file which exists in "blockcart" folder in "modules" folder. Open it and go to line 560. Replace: $('.ajax_block_cart_total').text(jsonData.total); with this $('.ajax_block_cart_total').text(jsonData.productTotal); This worked for me. I guess it should work for you too. 3 Link to comment Share on other sites More sharing options...
vince24091986 Posted August 31, 2011 Share Posted August 31, 2011 Thanks a lot for your solution, she's ok for me, I used the last version of Prestashop. Link to comment Share on other sites More sharing options...
ermis Posted September 12, 2011 Share Posted September 12, 2011 alprmtlu I tried what you propose, but the Total shows the price of the items with the shipping cost, although the line of shipping cost is not shown. How can I prevent the shipping cost to be added to the Total amount? Link to comment Share on other sites More sharing options...
ermis Posted September 12, 2011 Share Posted September 12, 2011 Ok, I found it! I had to delete the line $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); in the "ajax-cart.js" file. Link to comment Share on other sites More sharing options...
vlienmak Posted September 29, 2011 Share Posted September 29, 2011 This is how I removed all the informations about shipping: 1. Go to "blockcart.tpl" and comment out these lines: <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <br/> 2. In the same file, find this line: <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> and replace {$total} with {$product_total}: <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span> 3. probably the "AJAX mode" is on so you "must" edit also the "ajax-cart.js" file which exists in "blockcart" folder in "modules" folder. Open it and go to line 560. Replace: $('.ajax_block_cart_total').text(jsonData.total); with this $('.ajax_block_cart_total').text(jsonData.productTotal); This worked for me. I guess it should work for you too. Hi, What is the version your are looking at? Seems like I can't find the word inside the TPL file. Please help.. Link to comment Share on other sites More sharing options...
alprmtlu Posted October 1, 2011 Share Posted October 1, 2011 Ok, I found it! I had to delete the line $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); in the "ajax-cart.js" file. I do not recommend you to delete any code in prestashop ever. Because you never know when you will need that code in the future. Commenting out the code you don't need is always the best option. Deleting codes may cause problems. Link to comment Share on other sites More sharing options...
alprmtlu Posted October 1, 2011 Share Posted October 1, 2011 Hi, What is the version your are looking at? Seems like I can't find the word inside the TPL file. Please help.. My version is 1.4.2.5. Oh, I'm sorry I forgot to mention that my theme was prestashop alternative theme. You should go to your "theme" folder first and find your theme that you are currently using. Go to "themes->your theme-> modules -> blockcart" folder and search for those lines I mentioned before in blockcart.tpl file. The class names or id attributes may be different depending on your theme. If you still can't find them, go to "prestashop root folder ->modules->blockcart" folder. Link to comment Share on other sites More sharing options...
El Patron Posted January 3, 2012 Share Posted January 3, 2012 This is how I removed all the informations about shipping: 1. Go to "blockcart.tpl" and comment out these lines: <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <br/> 2. In the same file, find this line: <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> and replace {$total} with {$product_total}: <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span> 3. probably the "AJAX mode" is on so you "must" edit also the "ajax-cart.js" file which exists in "blockcart" folder in "modules" folder. Open it and go to line 560. Replace: $('.ajax_block_cart_total').text(jsonData.total); with this $('.ajax_block_cart_total').text(jsonData.productTotal); This worked for me. I guess it should work for you too. Great post alprmtlu. This worked for me on 1.4.6.2, to remove the additional table row I commented out as follows: <!-- <div class="cart-prices-block"> <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> </div> --> 1 Link to comment Share on other sites More sharing options...
alprmtlu Posted January 6, 2012 Share Posted January 6, 2012 Great post alprmtlu. This worked for me on 1.4.6.2, to remove the additional table row I commented out as follows: <!-- <div class="cart-prices-block"> <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> </div> --> I'm glad I could help Link to comment Share on other sites More sharing options...
B. Szakacs Posted January 16, 2012 Share Posted January 16, 2012 Hi. The solution works - kinda. Needs one more rectification If you are in collapsed mode, than at each refresh, for a split second your cart will display the total of products + shipping, as first this is handled by PHP. Than when the JS kicks in, will rectificatem and update the contents of span with class "ajax_cart_total" with the normal price, without shipping. This looks pretty bad, specially on slow load and brosers, as everytime user is faced with 2 prices. We need to do this: Open blockcart.tpl fromt he module directory and find: <span class="ajax_cart_total" {if $cart_qties <= 0}style="display:none"{/if}>{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false)}{else}{convertPrice price=$cart->getOrderTotal(true)}{/if}</span> Replace with: <span class="ajax_cart_total" {if $cart_qties <= 0}style="display:none"{/if}>{$product_total}</span> This presumes, that you don't want to include wrapping price either. Of course, on checkout page the shipping is there as it should, as this affects the collapsed cart box only 1 Link to comment Share on other sites More sharing options...
milktea Posted August 28, 2012 Share Posted August 28, 2012 This is how I removed all the informations about shipping: 1. Go to "blockcart.tpl" and comment out these lines: <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <br/> 2. In the same file, find this line: <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> and replace {$total} with {$product_total}: <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span> 3. probably the "AJAX mode" is on so you "must" edit also the "ajax-cart.js" file which exists in "blockcart" folder in "modules" folder. Open it and go to line 560. Replace: $('.ajax_block_cart_total').text(jsonData.total); with this $('.ajax_block_cart_total').text(jsonData.productTotal); This worked for me. I guess it should work for you too. hi! thank you for your information. i am a newbie in these prestashop things i want to erase the shipping from the cart and erasing the shipping step in the checkout process. i've already do all u've write above, but the shipping word is still there nothing change. i'm using the latest prestashop version 1.4.9.0 please help me, i spend 2 days to remove the shipping things haha, thanks! Link to comment Share on other sites More sharing options...
waynemiller Posted February 9, 2013 Share Posted February 9, 2013 (edited) This is how I removed all the informations about shipping: 1. Go to "blockcart.tpl" and comment out these lines: <span>{l s='Shipping' mod='blockcart'}</span> <span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span> <br/> 2. In the same file, find this line: <span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span> and replace {$total} with {$product_total}: <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span> 3. probably the "AJAX mode" is on so you "must" edit also the "ajax-cart.js" file which exists in "blockcart" folder in "modules" folder. Open it and go to line 560. Replace: $('.ajax_block_cart_total').text(jsonData.total); with this $('.ajax_block_cart_total').text(jsonData.productTotal); This worked for me. I guess it should work for you too. Ive done everything that was explained here too but I still have the shipping cost showing in the total? How do I remove the shipping cost from the total? Im using 1.5.2 Aaaah I realised what it is, I didnt see the underscore in product_total Edited February 9, 2013 by waynemiller (see edit history) Link to comment Share on other sites More sharing options...
iansari13 Posted February 7, 2014 Share Posted February 7, 2014 not workung with 1.5.6.1 any solution for this verson? Link to comment Share on other sites More sharing options...
katya.vettorello Posted March 17, 2014 Share Posted March 17, 2014 I need it too... please... Link to comment Share on other sites More sharing options...
satriyoz Posted March 19, 2014 Share Posted March 19, 2014 for presta 1.5.5.. 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.. 1 Link to comment Share on other sites More sharing options...
Flakkak Posted June 20, 2014 Share Posted June 20, 2014 (edited) Thanks, It worked out perfectly for me. P1.5.4.1 Edited June 20, 2014 by Flakkak (see edit history) Link to comment Share on other sites More sharing options...
david the developer Posted July 23, 2014 Share Posted July 23, 2014 i did all of the steps in this topic but then something came very strange. the mobile version of my website stopped working it gave the following Cart 0 Products Product (empty) No products so customers can not view your website on pad or Iphone . any recommendations? Link to comment Share on other sites More sharing options...
VectorLab Posted April 15, 2015 Share Posted April 15, 2015 This soltion doesnt works for 1.6... could anyone help me with this problem please ? Link to comment Share on other sites More sharing options...
JorgeAnzola Posted May 19, 2016 Share Posted May 19, 2016 I just wanted to remove the "Total shipping: free shipping" message from cart. I added this to the global.css .cart_total_delivery { display: none; } I leave it here if anyone needs it. 1 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