jeff8899 Posted February 12, 2018 Share Posted February 12, 2018 i wanna make a new shipping calculation and not sure how to get the total order amount. what is the variable for the total order amount? and i wanna use it inside the below function. do i need to define anything first? public function getOrderShippingCost($params, $shipping_cost) { } many thanks. Link to comment Share on other sites More sharing options...
jeff8899 Posted February 12, 2018 Author Share Posted February 12, 2018 i wanna use the variable $order_total my on module, but just not work. i think it i need to define something. anyone knows? Link to comment Share on other sites More sharing options...
jeff8899 Posted February 13, 2018 Author Share Posted February 13, 2018 i need to use the method getOrderTotal from the classes/Cart.php public function getOrderShippingCost($params, $shipping_cost) { $total_products = $this->getOrderTotal(false, Cart::Both); } but it's not working... anyone knows???? 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