News:

Looking for documentation? Take a look on our wiki

Main Menu

Price showing in Order done page is different from the total

Started by lobebe, August 28, 2015, 13:44:31 PM

Previous topic - Next topic

lobebe

Hello Everyone,

I have a heavily customised virtuemart and for the total price in cart

I use calculation like:

<?php $bse = $this->cart->pricesUnformatted['salesPrice'] ;
                     $sps = $this->cart->pricesUnformatted['salesPriceShipment'];
                     $spp = $this->cart->pricesUnformatted['salesPricePayment'];
                     $dpt = $this->cart->pricesUnformatted['salesPriceCoupon'];
                     $fsbs = ($bse + $sps + $spp + $dpt);
                     echo number_format($fsbs,2,',','').'&euro;';?>

which work great but my challenge now is the total on order done page, invoice sent to customer, order page are different from my actual total.

Can anyone help with this please.

Thank you
Adeola

GJC Web Design

 :-\
I really wonder why you are doing this?

All this stuff works out of the box in VM...

and surely a coupon should be minus?
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

lobebe

Yes, coupon is minus and it already have minus sign before it so if I add it. it will minus.
The site customisation is confusing and it was done by another developer but I manage it now and I need to achieve my client's request on this. That is the reason for this.

Thank you
Adeola

GJC Web Design

then I assume u will have to do the same on all the files that produce the invoice, order done etc -- seems nuts to me...
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