bebba Posted May 19, 2010 Share Posted May 19, 2010 Hi, can i remove the shipping line/price from cart? Wher? Link to comment Share on other sites More sharing options...
rocky Posted May 20, 2010 Share Posted May 20, 2010 To remove shipping from the cart block, edit modules/blockcart/blockcart.tpl and {* comment out *} lines 93-95: {l s='Shipping' mod='blockcart'} {$shipping_cost} To remove shipping from the shopping cart summary, edit shopping-cart.tpl in your theme's directory and {* comment out *} lines 111-130: {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'll need to remove the shipping information from all the email templates in the mails directory too. Link to comment Share on other sites More sharing options...
bebba Posted June 8, 2010 Author Share Posted June 8, 2010 OK, did not try this, i just renamed the shipping for somthing more suiteble for m. Link to comment Share on other sites More sharing options...
SpyrosT Posted June 10, 2010 Share Posted June 10, 2010 Rocky, I tried to comment out these lines but even though shipping costhas been removed from the cart block and the cart summary, it is stillcalculated in the total price of both cart block and cart summary. Link to comment Share on other sites More sharing options...
rocky Posted June 10, 2010 Share Posted June 10, 2010 Of course. You must go to the Shipping tab and change all the shipping costs to 0 if you don't want shipping at all. My code hides the shipping cost only. It does not remove it. Link to comment Share on other sites More sharing options...
SpyrosT Posted June 10, 2010 Share Posted June 10, 2010 I need the shipping cost, but I need it ONLY after the customer has been loged inand at the "shipping"step of check out. Link to comment Share on other sites More sharing options...
rocky Posted June 11, 2010 Share Posted June 11, 2010 That will be more difficult. You'll need to change line 59 of modules/blockcart/blockcart.php from: 'total' => Tools::displayPrice($params['cart']->getOrderTotal($usetax), $currency), to: 'total' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 4), $currency), I think that should get the total without shipping. Here's the different parameters you can use: type = 1: only products type = 2: only discounts type = 3: both type = 4: both but without shipping type = 5: only shipping type = 6: only wrapping type = 7: only products without shipping Link to comment Share on other sites More sharing options...
SpyrosT Posted June 11, 2010 Share Posted June 11, 2010 Hey Rocky, I tried both 4 or 7 but it didn't worked.Shipping is still calculated. Link to comment Share on other sites More sharing options...
rocky Posted June 11, 2010 Share Posted June 11, 2010 What about 1 or 3? If that doesn't work, you'll have to get call getOrderTotal twice: once to get the total, then once to get the shipping. You could then subtract the shipping from the total. Link to comment Share on other sites More sharing options...
SpyrosT Posted June 11, 2010 Share Posted June 11, 2010 No luck!That's how it looks. $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, $usetax), 'nb_total_products' =>$params['cart']->nbProducts(), 'shipping_cost' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 5), $currency), 'show_wrapping' => floatval($params['cart']->getOrderTotal($usetax, 6)) > 0 ? true : false, 'wrapping_cost' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 6), $currency), 'product_total' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 4), $currency), 'total' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 4), $currency), 'id_carrier' => $params['cart']->id_carrier, 'ajax_allowed' => intval(Configuration::get('PS_BLOCK_CART_AJAX')) == 1 ? true : false )); Link to comment Share on other sites More sharing options...
rocky Posted June 11, 2010 Share Posted June 11, 2010 Weird. This is working for me: 'total' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 4), $currency), The total is displaying without the shipping cost. Link to comment Share on other sites More sharing options...
SpyrosT Posted June 11, 2010 Share Posted June 11, 2010 Yes it's weird.Maybe this is caused by an other modification because of thishttp://www.prestashop.com/forums/viewreply/254256/But I'm thinking if there was a way to have not at all a default country, will solve this.I suggest you start developing an Advance Shipping Module!!!! lolI will be your first customer. Link to comment Share on other sites More sharing options...
logan1ro Posted April 13, 2011 Share Posted April 13, 2011 I think it doesn't work on PS 1.4Any ideas? Link to comment Share on other sites More sharing options...
jesusruiz Posted June 23, 2011 Share Posted June 23, 2011 Does anyone know how to hide price in cart for pretashop 1.4? Link to comment Share on other sites More sharing options...
rocky Posted June 25, 2011 Share Posted June 25, 2011 As far as I know, it should be as easy as editing themes//modules/blockcart/blockcart.tpl (copy modules/blockcart/blockcart.tpl if this file doesn't exist) to override the cart, then change line 68 from: {if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total`"}{else}{displayWtPrice p="`$product.total_wt`"}{/if} to: {*{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total`"}{else}{displayWtPrice p="`$product.total_wt`"}{/if}*} Link to comment Share on other sites More sharing options...
anson.c Posted February 19, 2013 Share Posted February 19, 2013 Nice! I managed to remove shipping from the shopping cart summary with Rocky's instruction. But it doesn't work when I commented out the 2 lines from blockcart.tpl. Maybe because I'm using PS1.5 now? Any thoughts? Link to comment Share on other sites More sharing options...
Recommended Posts