Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

810
 
826
 
826
 
shopping_cart.php
_> 11 <?php
  22 /*
<> 3 -  $Id: shopping_cart.php 810 2006-08-27 01:13:17Z hpdl $
   3+  $Id: shopping_cart.php 826 2006-08-29 11:39:48Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
700700     function _cleanUp() {
  701701       global $osC_Database, $osC_Customer;
  702702 
<> 703 -      foreach ($this->_contents as $products_id => $data) {
   703+      foreach ($this->_contents as $product_id_string => $data) {
704704         if ($data['quantity'] < 1) {
<> 705 -          unset($this->_contents[$products_id]);
   705+          unset($this->_contents[$product_id_string]);
706706 
  707707 // remove from database
  708708           if ($osC_Customer->isLoggedOn()) {
  709709             $Qdelete = $osC_Database->query('delete from :table_customers_basket where customers_id = :customers_id and products_id = :products_id');
  710710             $Qdelete->bindTable(':table_customers_basket', TABLE_CUSTOMERS_BASKET);
  711711             $Qdelete->bindInt(':customers_id', $osC_Customer->getID());
<> 712 -            $Qdelete->bindValue(':products_id', $products_id);
   712+            $Qdelete->bindValue(':products_id', $product_id_string);
713713             $Qdelete->execute();
  714714           }
  715715         }
     
 !
735735           $tax_description = $osC_Tax->getTaxRateDescription($data['tax_class_id'], $this->getTaxingAddress('country_id'), $this->getTaxingAddress('zone_id'));
  736736 
  737737           $shown_price = $osC_Currencies->addTaxRateToPrice($data['final_price'], $tax, $data['quantity']);
<>  738+
738739           $this->_sub_total += $shown_price;
  739740           $this->_total += $shown_price;
  740741 
  741742           if (DISPLAY_PRICE_WITH_TAX == '1') {
  742743             $tax_amount = $shown_price - ($shown_price / (($tax < 10) ? '1.0' . str_replace('.', '', $tax) : '1.' . str_replace('.', '', $tax)));
  743744           } else {
  744745             $tax_amount = ($tax / 100) * $shown_price;
<>  746+
   747+            $this->_total += $tax_amount;
<_ 745748           }
  746749 
  747750           $this->_tax += $tax_amount;