VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: lobebe on August 28, 2015, 13:44:31 PM

Title: Price showing in Order done page is different from the total
Post by: lobebe on August 28, 2015, 13:44:31 PM
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
Title: Re: Price showing in Order done page is different from the total
Post by: GJC Web Design on August 28, 2015, 13:46:45 PM
 :-\
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?
Title: Re: Price showing in Order done page is different from the total
Post by: lobebe on August 28, 2015, 14:06:39 PM
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
Title: Re: Price showing in Order done page is different from the total
Post by: GJC Web Design on August 28, 2015, 15:56:49 PM
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...