Created
August 2, 2012 08:40
-
-
Save fusco/3235478 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Cart extends CartCore | |
{ | |
public function __construct($id = NULL, $id_lang = NULL) | |
{ | |
parent::__construct($id, $id_lang); | |
/* Oleacorner : Optimization of producst cache management in case several cart objects with same IDs are created */ | |
if (isset(self::$_carts_list[$id.'_'.$id_lang])) | |
$this->_products = self::$_carts_list[$id.'_'.$id_lang]->_products; | |
else | |
self::$_carts_list[$id.'_'.$id_lang] = $this; | |
/* End Oleacorner */ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment