News:

Support the VirtueMart project and become a member

Main Menu

Total without and with tax in cart pricelist.php

Started by Picklehead, January 06, 2023, 16:45:32 PM

Previous topic - Next topic

Picklehead

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

Picklehead

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


GJC Web Design

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";
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Picklehead

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  ;)