Gadget Posted September 14, 2010 Share Posted September 14, 2010 Hi.Is there a way to show the handling cost as a separate item from the shipping cost?The reason we would like to do this is we would like to offer free shipping on orders over a certain value but would still like to charge a handling fee on all orders?Andrew 1 Link to comment Share on other sites More sharing options...
RonG Posted September 21, 2010 Share Posted September 21, 2010 I also would like some information on this question. I don't see any where in the cart to ad a handing fee separately from shipping.ThanksRon Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 It's not quite as easy as I thought it would be. Try changing line 55 of modules/blockcart/blockcart.php (in PrestaShop v1.3.1) from: 'shipping_cost' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 5), $currency), to: 'shipping_cost' => Tools::displayPrice($params['cart']->getOrderTotal($usetax, 5), $currency) - Configuration::get('PS_SHIPPING_HANDLING'), 'handling_cost' => Configuration::get('PS_SHIPPING_HANDLING'), and add the following before the return in the hookAjaxCall function $smarty->assign('handling_cost', Configuration::get('PS_SHIPPING_HANDLING')); and change line 68 of modules/blockcart/blockcart-json.tpl from: 'shippingCost': '{$shipping_cost|html_entity_decode:2:'UTF-8'}', to: 'shippingCost': '{$shipping_cost|html_entity_decode:2:'UTF-8'}', 'handlingCost': '{$handling_cost|html_entity_decode:2:'UTF-8'}', and change line 507 of modules/blockcart/ajax-cart.js from: $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); to: $('.ajax_cart_shipping_cost').text(jsonData.shippingCost); $('.ajax_cart_handling_cost').text(jsonData.handlingCost); and change lines 93-95 of modules/blockcart/blockcart.tpl from: {l s='Shipping' mod='blockcart'} {$shipping_cost} to: {l s='Shipping' mod='blockcart'} {$shipping_cost} {l s='Handling' mod='blockcart'} {$handling_cost} Link to comment Share on other sites More sharing options...
Stefand Posted November 4, 2010 Share Posted November 4, 2010 when I change this, were can I fill in the handling cost? Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 It's the "Handling charges" field on the Shipping tab. Link to comment Share on other sites More sharing options...
Stefand Posted November 4, 2010 Share Posted November 4, 2010 I find it!But how can I display it in the cart summary? Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 Change lines 460-461 of order.php (in PrestaShop v1.3.1) from: 'shippingCost' => $cart->getOrderTotal(true, 5), 'shippingCostTaxExc' => $cart->getOrderTotal(false, 5), to: 'shippingCost' => $cart->getOrderTotal(true, 5) - Configuration::get('PS_SHIPPING_HANDLING'), 'shippingCostTaxExc' => $cart->getOrderTotal(false, 5) - Configuration::get('PS_SHIPPING_HANDLING'), 'handlingCost' => Configuration::get('PS_SHIPPING_HANDLING'), Then add the following before line 131 of shopping-cart.tpl: {l s='Total handling:'} {displayPrice price=$handlingCost} Link to comment Share on other sites More sharing options...
mat250 Posted November 17, 2010 Share Posted November 17, 2010 Thanks Rocky, but I've a problem : the shipping price of the block cart is set to -6,00€ (My Shipping Handling costs) for example when there is no product in my cart.I tried to made an if condition when the price is set (following line), but without any success (I always get an PHP error).'shippingCost' => $cart->getOrderTotal(true, 5) - Configuration::get('PS_SHIPPING_HANDLING'),Any solution ?Thanks.Mat. Link to comment Share on other sites More sharing options...
ewoox Posted December 10, 2010 Share Posted December 10, 2010 Does any body know why in Version 1.3.2.3 “Handling charges” field on the Shipping tab does not appear? Link to comment Share on other sites More sharing options...
mat250 Posted April 1, 2011 Share Posted April 1, 2011 Hi, Is anyone know how to do this Prestashop 1.4 ?Now everything is managed through Controllers and I didn't know how to do this. Link to comment Share on other sites More sharing options...
stinkyb Posted April 26, 2011 Share Posted April 26, 2011 Hi Rocky,I tried to use your changes for 1.3.7 and it made my right column entries disappear. It did seem to retain some of the updates though in the back end that you can see in the body of the order page.I was simply trying to get the blockcart module to read "Shippiing & Handling" instead of just "Shipping" because the first thing that gets added is the $2.00 charge for handling when you click on the "Check out" button. To add Shipping and Handling to the blockcart I followed the steps outlined here:http://www.prestashop.com/forums/viewthread/104670/development/change_block_cart_text_wont_change_dot_Essentially:Any place you see {l s= blahblah} within a templatethat indicates the string can be (should be) edited via the backoffice Translations tab.Go to TOOLS>>TRANSLATIONS>>MODULES>>BLOCKCART to change the text for "Shipping" to "Shipping & Handling".Thanks to your steps, I now have a specific line item for handling too. Thanks,Stinkyb. Link to comment Share on other sites More sharing options...
Kurt Moskjaer Anders Posted September 17, 2012 Share Posted September 17, 2012 I know this is an old thread, but are there any way of doing this in the latest version of PS? Link to comment Share on other sites More sharing options...
starsg38 Posted June 3, 2014 Share Posted June 3, 2014 Also need help with this in 1.6. 1 Link to comment Share on other sites More sharing options...
nwattimena Posted September 12, 2014 Share Posted September 12, 2014 Need a solution too for 1.6, this really influences the decision making process of the end-user. Please help someone? 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