Author Topic: Total without and with tax in cart pricelist.php  (Read 418 times)

Picklehead

  • Beginner
  • *
  • Posts: 23
  • A beginner
Total without and with tax in cart pricelist.php
« 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

Picklehead

  • Beginner
  • *
  • Posts: 23
  • A beginner
Re: Total without and with tax in cart pricelist.php
« Reply #1 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


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10744
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Total without and with tax in cart pricelist.php
« Reply #2 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";
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

  • Beginner
  • *
  • Posts: 23
  • A beginner
Re: Total without and with tax in cart pricelist.php
« Reply #3 on: January 06, 2023, 21:21:17 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  ;)