niravaseem Posted July 28, 2014 Share Posted July 28, 2014 Hi, I have set the default currency of my shop to 'Indian Rs.'. {But have set the default currency of all countries to 'Us $' - in 'Localizations'->'Countries'} So all clients can only see Dollar prices. Now, I need to round of shipping totals to 0 decimal places. {For the products it is ok that it is rounding to 2 decimal places. This should remain same} Only shipping has to be rounded to 0 decimals. I have tried editing this function in classes/carrier.php public function getDeliveryPriceByWeight($total_weight, $id_zone) but it calculates the shipping in indian rupees, then rounds of to '0' decimal places - and then converts the total to US $ {with 2 decimal places rounding}. So my issue remains same... Anyone can help please... Thankls in advance. Prestashop 1.5.6.2 Link to comment Share on other sites More sharing options...
niravaseem Posted July 29, 2014 Author Share Posted July 29, 2014 (edited) ok.. I got that.. added this to classes -> Tools.php {Line 458 } $price=round($price); edit--- It also round's off prices in category view -- {not solved} edit 2--- solved in cart page -- classes/cart.php line 2450 change return $total_shipping; to return round($total_shipping); for pop up cart classes/cart.php line 1335 Added line $shipping_fees=round($shipping_fees); Edited July 29, 2014 by niravaseem (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts