Jump to content

order total


jeff8899

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...