Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

733
 
734
 
734
 
shopping_cart.php
_> 11 <?php
  22 /*
<> 3 -  $Id: shopping_cart.php 733 2006-08-20 15:32:32Z hpdl $
   3+  $Id: shopping_cart.php 734 2006-08-20 17:56:47Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
126126 
  127127         $Qspecials = $osC_Database->query('select specials_new_products_price from :table_specials where products_id = :products_id and status = 1');
  128128         $Qspecials->bindTable(':table_specials', TABLE_SPECIALS);
<> 129 -        $Qspecials->bindInt(':products_id', tep_get_prid($Qproducts->value('products_id')));
   129+        $Qspecials->bindInt(':products_id', osc_get_product_id($Qproducts->value('products_id')));
130130         $Qspecials->execute();
  131131 
  132132         if ($Qspecials->numberOfRows() > 0) {
     
 !
152152         $Qattributes->bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
  153153         $Qattributes->bindInt(':customers_id', $osC_Customer->getID());
  154154         $Qattributes->bindValue(':products_id', $Qproducts->value('products_id'));
<> 155 -        $Qattributes->bindInt(':products_id', tep_get_prid($Qproducts->value('products_id')));
   155+        $Qattributes->bindInt(':products_id', osc_get_product_id($Qproducts->value('products_id')));
156156         $Qattributes->bindInt(':language_id', $osC_Language->getID());
  157157         $Qattributes->bindInt(':language_id', $osC_Language->getID());
  158158         $Qattributes->execute();
     
 !
217217     function add($products_id, $attributes = '', $quantity = '') {
  218218       global $osC_Database, $osC_Language, $osC_Customer, $osC_Image;
  219219 
<> 220 -      $products_id_string = tep_get_uprid($products_id, $attributes);
  221 -      $products_id = tep_get_prid($products_id_string);
   220+      $products_id_string = osc_get_product_id_string($products_id, $attributes);
   221+      $products_id = osc_get_product_id($products_id_string);
222222 
  223223       if (is_numeric($products_id)) {
  224224         $Qcheck = $osC_Database->query('select p.products_price, p.products_tax_class_id, p.products_weight, p.products_weight_class, p.products_status, i.image from :table_products p left join :table_products_images i on (p.products_id = i.products_id and i.default_flag = :default_flag) where p.products_id = :products_id');
     
 !
415415     }
  416416 
  417417     function generateCartID($length = 5) {
<> 418 -      return tep_create_random_value($length, 'digits');
   418+      return osc_create_random_string($length, 'digits');
419419     }
  420420 
  421421     function hasCartID() {
     
 !
499499 
  500500       $Qstock = $osC_Database->query('select products_quantity from :table_products where products_id = :products_id');
  501501       $Qstock->bindTable(':table_products', TABLE_PRODUCTS);
<> 502 -      $Qstock->bindInt(':products_id', tep_get_prid($products_id));
   502+      $Qstock->bindInt(':products_id', osc_get_product_id($products_id));
<_ 503503       $Qstock->execute();
  504504 
  505505       if (($Qstock->valueInt('products_quantity') - $this->_contents[$products_id]['quantity']) > 0) {