VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Picklehead on January 06, 2023, 16:45:32 PM

Title: Total without and with tax in cart pricelist.php
Post by: Picklehead on January 06, 2023, 16:45:32 PM
HI,
I am trying to create a subtotal column in my cart pricelist.php.

Basically I have Tax, Discount and Total columns but require another which shows total but without tax.

Any help or pointers would be great!

Using VirtueMart 3.8.7 and Joomla! 3.10.11
Title: Re: Total without and with tax in cart pricelist.php
Post by: Picklehead on January 06, 2023, 18:12:30 PM
Ok, so i have worked out the without tax prices for each item in the list and a subtotal of all lines without tax as per the attached image.

Does anyone now how I can get the shipment price without tax and the total without tax?

Thanks

Title: Re: Total without and with tax in cart pricelist.php
Post by: GJC Web Design on January 06, 2023, 21:01:34 PM
aren't all prices in $this->cart->cartPrices ?
just echo it out and see what's there

print 'Debug Line '.__LINE__.' $this->cart->cartPrices <pre>'; print_r ($this->cart->cartPrices); print "</pre><br />\n";
Title: Re: Total without and with tax in cart pricelist.php
Post by: Picklehead on January 06, 2023, 21:21:17 PM
Quote from: GJC Web Design on January 06, 2023, 21:01:34 PM
aren't all prices in $this->cart->cartPrices ?
just echo it out and see what's there

print 'Debug Line '.__LINE__.' $this->cart->cartPrices <pre>'; print_r ($this->cart->cartPrices); print "</pre><br />\n";

Perfect, all sorted thank you so much for the help  ;)