VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dave111 on May 23, 2013, 16:20:32 PM

Title: Get cart total value (including all tax,shipping,coupon etc)
Post by: dave111 on May 23, 2013, 16:20:32 PM
I'm writing a payment module where I need to be able to get the cart total, include all the product, shipping, tax, coupons (the value that is shown in the bottom "Total: " field at the checkout)

I need to be able to access this value from within the "renderPluginName()" function in my payment module.

I believe this value should be listed under, however billTotal is not set:

$cart = VirtueMartCart::getCart();
echo $cart->pricesUnformatted['billTotal'];
Title: Re: Get cart total value (including all tax,shipping,coupon etc)
Post by: sotoz on October 21, 2013, 09:28:00 AM
I have the same problem. Is there a solution on getting the total value of the cart in a variable in someway?