JackB Posted December 18, 2009 Share Posted December 18, 2009 Hello, I would like to show the total ((({convertPrice $price=total_price}))) of the file shopping-cart.tpl without the shipping cost.My 1st solution was to not show ((({convertPrice $price=total_price}))) but only ((( {convertPrice price=$total_products} ))) and a display:none to ((( {convertPrice price=$total_products} ))) Now I noticed that in case of use of reduction coupons the display becomes inconsistent and incomprehensible for the buyer.I would like to display something like this: ((({convertPrice $price=total_price_without_shippingCost}))) Thank you. Link to comment Share on other sites More sharing options...
chineseboy Posted January 10, 2010 Share Posted January 10, 2010 I'm also trying to show the total price in the cart without the shipping cost. Does anyone know how to do this? Link to comment Share on other sites More sharing options...
rocky Posted January 11, 2010 Share Posted January 11, 2010 Try changing line 47 of modules/blockcart/blockcart.php from: 'total' => Tools::displayPrice($params['cart']->getOrderTotal(intval(Configuration::get('PS_PRICE_DISPLAY')) == 1 ? false : true), $currency), to: 'total' => Tools::displayPrice($params['cart']->getOrderTotal(intval(Configuration::get('PS_PRICE_DISPLAY')) == 1 ? false : true, 4), $currency), You could also try changing the 4 to 7. Here is what each of the numbers mean:type = 1 : only productstype = 2 : only discountstype = 3 : bothtype = 4 : both but without shippingtype = 5 : only shippingtype = 6 : only wrappingtype = 7 : only products without shipping Link to comment Share on other sites More sharing options...
chineseboy Posted January 11, 2010 Share Posted January 11, 2010 Thanks rocky. I actually managed to solve this last night but forgot to post a solution here for the original poster. Link to comment Share on other sites More sharing options...
lkkr Posted January 11, 2010 Share Posted January 11, 2010 You could comment the shipping costs in the template file as well.. Link to comment Share on other sites More sharing options...
chineseboy Posted January 11, 2010 Share Posted January 11, 2010 Thanks ikkr. Done that already aswel. I wonder if the original poster has actually seen this. Link to comment Share on other sites More sharing options...
diamond204 Posted April 20, 2010 Share Posted April 20, 2010 I have updated modded version of the Presta cart that do not show totals or shipping here:http://www.prestashop.com/forums/viewthread/17189/#116724Works with AJAX Link to comment Share on other sites More sharing options...
Rafiki Posted August 11, 2010 Share Posted August 11, 2010 Thanks rocky, it works ok! 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