Shape 5

Joomla Templates => eMercantilism - January 08 - Club => : lulu January 18, 2008, 03:05:27 PM



: S5 Column Cart no correct calcul
: lulu January 18, 2008, 03:05:27 PM
Hi,

The calculation is not correct
order total : 90.00

S5 Column Cart   add tax  In supplement   :o



: Re: S5 Column Cart no correct calcul
: jonahh January 20, 2008, 03:29:31 PM
It is correct. The S5 column cart includes tax in its total displayed.  The total on the Virtuemart cart page only displays the total of the order excluding tax.

Regards,


: Re: S5 Column Cart no correct calcul
: lulu January 21, 2008, 05:43:40 AM
Hi, jonahh

NO NO sorry    is not correct

my exemple : 90 €= order TTC         75.25 HT because order TTC   (TVA 19.60 %)
VM displays the total AND tax

If you look at the basket.php code it is different   Coupon discount is not correct










Lucien


: Re: S5 Column Cart no correct calcul
: jonahh January 21, 2008, 11:05:56 AM
So you are saying that when you use a coupon the total is not correct?


: Re: S5 Column Cart no correct calcul
: lulu January 21, 2008, 11:33:31 AM
Hi, jonahh

sorry my english

No I say that the code php is not correct

the code basket.php <> the code S5_

the code calcul  taxe or not tax  basket.php

   if( $auth["show_price_including_tax"] == 1 ) {
         $product_price = $price["product_price"] * ($my_taxrate+1);
      } else {
         $product_price = $price["product_price"];
      }


The code  S5_

   if( $auth['show_price_including_tax']) {
         $tax_total *= $discount_factor;
      }
      $tax_total += $shipping_tax;
      $tax_total = $CURRENCY_DISPLAY->getRounded( $order_taxable );
      $tax_total = $ps_checkout->calc_order_tax($order_taxable, $vars);
      $ordertotal = ($tax_total) + ($total);
  }


: Re: S5 Column Cart no correct calcul
: jonahh January 23, 2008, 07:09:34 PM
Hello Lulu,

The problem has been fixed and the download updated. Thanks for the input.

Regards,


: Re: S5 Column Cart no correct calcul
: lulu January 24, 2008, 12:19:47 PM
Super   merci   :)