  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: shopping_cart.php 732 2006-08-20 00:18:00Z hpdl $ |
| |
| 3 | + | $Id: shopping_cart.php 733 2006-08-20 15:32:32Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
759 | 759 | | } |
| |
760 | 760 | | |
| |
761 | 761 | | function _calculate($set_shipping = true) { |
  |
762 | | - | global $osC_Tax, $osC_Weight, $osC_Shipping, $osC_OrderTotal; |
| |
| 762 | + | global $osC_Currencies, $osC_Tax, $osC_Weight, $osC_Shipping, $osC_OrderTotal; |
|
763 | 763 | | |
| |
764 | 764 | | $this->_sub_total = 0; |
| |
765 | 765 | | $this->_total = 0; |
| |
|
|
 |
… |
|
776 | 776 | | $tax = $osC_Tax->getTaxRate($data['tax_class_id'], $this->getTaxingAddress('country_id'), $this->getTaxingAddress('zone_id')); |
| |
777 | 777 | | $tax_description = $osC_Tax->getTaxRateDescription($data['tax_class_id'], $this->getTaxingAddress('country_id'), $this->getTaxingAddress('zone_id')); |
| |
778 | 778 | | |
  |
779 | | - | $shown_price = tep_add_tax($data['final_price'], $tax) * $data['quantity']; |
| |
| 779 | + | $shown_price = $osC_Currencies->formatRawWithTaxRate($data['final_price'], $tax, $data['quantity']); |
  |
780 | 780 | | $this->_sub_total += $shown_price; |
| |
781 | 781 | | $this->_total += $shown_price; |
| |
782 | 782 | | |