  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: shopping_cart.php 599 2006-07-03 17:36:46Z hpdl $ |
| |
| 3 | + | $Id: shopping_cart.php 692 2006-08-16 00:53:12Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
212 | 212 | | $this->resetShippingMethod(); |
| |
213 | 213 | | $this->resetBillingAddress(); |
| |
214 | 214 | | $this->resetBillingMethod(); |
  |
215 | | - | |
| |
216 | | - | if (isset($_SESSION['new_products_id_in_cart'])) { |
| |
217 | | - | unset($_SESSION['new_products_id_in_cart']); |
| |
218 | | - | } |
|
219 | 215 | | } |
| |
220 | 216 | | |
| |
221 | 217 | | function add($products_id, $attributes = '', $quantity = '') { |
| |
|
|
 |
… |
|
233 | 229 | | $Qcheck->execute(); |
| |
234 | 230 | | |
| |
235 | 231 | | if ($Qcheck->valueInt('products_status') === 1) { |
  |
236 | | - | $_SESSION['new_products_id_in_cart'] = $products_id_string; |
| |
237 | | - | |
  |
238 | 232 | | if ($this->exists($products_id_string)) { |
| |
239 | 233 | | if (is_numeric($quantity) === false) { |
| |
240 | 234 | | $quantity = $this->getQuantity($products_id_string) + 1; |