/** * Show the Wishlist * * @return oxuserbasket | bool */ public function getWishList() { if ($this->_oWishList === null) { $this->_oWishList = false; if ($oUser = $this->getUser()) { $this->_oWishList = $oUser->getBasket('wishlist'); if ($this->_oWishList->isEmpty()) { $this->_oWishList = false; } } } return $this->_oWishList; }
if (!in_array(getenv('REMOTE_ADDR'), $ips)) { //if (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE != getenv('REMOTE_ADDR')){ if (DOWN_FOR_MAINTENANCE == 'true' and !strstr($PHP_SELF, DOWN_FOR_MAINTENANCE_FILENAME)) { tep_redirect(tep_href_link(DOWN_FOR_MAINTENANCE_FILENAME)); } } // do not let people get to down for maintenance page if not turned on if (DOWN_FOR_MAINTENANCE == 'false' and strstr($PHP_SELF, DOWN_FOR_MAINTENANCE_FILENAME)) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } // EOF: MOD - Down for Maintenance // BOF: MOD - Wishlist 3.5 // wishlist data if (!tep_session_is_registered('wishList') || !is_object($wishList)) { tep_session_register('wishList'); $wishList = new wishlist(); } //Wishlist actions (must be before shopping cart actions) if (isset($_POST['wishlist_x'])) { if (isset($_POST['products_id'])) { if (isset($_POST['id'])) { $attributes_id = $_POST['id']; tep_session_register('attributes_id'); } $wishlist_id = $_POST['products_id']; tep_session_register('wishlist_id'); } tep_redirect(tep_href_link(FILENAME_WISHLIST)); } // EOF: MOD - Wishlist 3.5 // BOF: set product attribute types