Jump to content

Get total price


morp

Recommended Posts

Hi all,

I'm customizing a payment module and I calculate the total price in this way:

 

$total_price=($product['price']+(($product['price']/100)*$vat_value))*$product['cart_quantity']

 

and then I handle voucher and shipping cost but I don't get the exact value because of the decimal value.

 

Is there any API to get the exact TOTAL price, then one than the payment modules get from the core?

 

 

thanks in advance

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...