boylibre Posted July 20, 2012 Share Posted July 20, 2012 I want to add a carton weight on top of total weight, I did this with PS 1.3 however it doesn't seems to work with PS1.4.8. What I did was adding "+ 0.08" on getTotalWeight function inside order.php. Can anyone give me a clue on what I did wrong? TIA, boy. public function getTotalWeight() { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' SELECT SUM(product_weight * product_quantity) weight FROM '._DB_PREFIX_.'order_detail WHERE id_order = '.(int)($this->id)); return (float)($result['weight']) + 0.08; Link to comment Share on other sites More sharing options...
boylibre Posted July 23, 2012 Author Share Posted July 23, 2012 can anyone help me on this ? Link to comment Share on other sites More sharing options...
boylibre Posted July 23, 2012 Author Share Posted July 23, 2012 Solved! There is another function of getTotalWeight on classes\cart.php. Link to comment Share on other sites More sharing options...
Donia Posted February 6, 2016 Share Posted February 6, 2016 Solved! There is another function of getTotalWeight on classes\cart.php. Hello, could you please tell me how to edit Cart.php? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts