Changeset 479 for trunk/lib/Cart.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Cart.inc.php
r478 r479 82 82 public function __construct($namespace='') 83 83 { 84 84 $app =& App::getInstance(); 85 85 86 86 $this->_ns = $namespace; … … 114 114 public function getParam($param) 115 115 { 116 116 $app =& App::getInstance(); 117 117 118 118 if (array_key_exists($param, $this->_params)) { … … 279 279 public function sum($key='extended_price') 280 280 { 281 281 $sum = 0; 282 282 switch ($key) { 283 283 case 'items' : … … 285 285 break; 286 286 287 287 case 'extended_price' : 288 288 foreach ($_SESSION['_cart'][$this->_ns]['items'] as $item_id => $specs) { 289 289 $sum += isset($specs[$key]) && is_numeric($specs[$key]) ? $specs[$key] : 0;
Note: See TracChangeset
for help on using the changeset viewer.