/** * This function is used to Show map * * @return HTML data */ function showMap() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('SITE_MAP'); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CAddCart.php'; include 'classes/Core/CSiteMap.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['sitemap'] = Core_CSiteMap::showMap(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('sitemap.html', $output); }
/** * This function is used to Display the FAQ Page * * @return string */ function showFaq() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CFaq.php'; include 'classes/Display/DFaq.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; include 'classes/Core/CAddCart.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CFaq::showFaq(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to Display the failure page after orderconfirmation and payment process * * @return string */ function failure() { include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CPaymentGateways.php'; include 'classes/Display/DPaymentGateways.php'; include 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['payments'] = Core_CPaymentGateways::optPaymentMode(); $output['selectedpayment'] = $_POST['paymentBy']; include 'classes/Core/CHome.php'; include 'classes/Display/DAddCart.php'; $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['cartcount'] = Core_CAddCart::countCart(); $output['failure'] = '<div class="alert alert-error"> <button data-dismiss="alert" class="close" type="button">×</button> Payment Failure Your Payment has not been made. </div>'; Bin_Template::createTemplate('failure.html', $output); }
/** * This function is used to show the dynamic cms * * @return string */ function showDynamicContent() { include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserAddressBook.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['result'] = $result; $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['showpages'] = Core_CHome::showDynamicContent(); Bin_Template::createTemplate('cms.html', $output); }
/** * This function is used to Display the Keyword Search Page * * @return string */ function keywordsearch() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('COMMON'); include 'classes/Core/CFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Core/CWishList.php'; include 'classes/Core/CNewProducts.php'; include 'classes/Core/CAddCart.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Display/DFeaturedItems.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Display/DWishList.php'; include 'classes/Display/DNewProducts.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); if ($_POST['catsel'] != "") { session_unregister('subcategory'); } if ($_POST['catsel'] != "") { // store selected main category for search $_SESSION['category'] = $_POST['catsel']; } if ($_POST['subcatsel'] != "") { // store selected sub category for search $_SESSION['subcategory'] = $_POST['subcatsel']; } $default = new Core_CFeaturedItems(); $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); if (isset($_GET['search'])) { $search = $_GET['search']; } else { $search = $_POST['search']; } $sort = $_POST['selsort']; $txtsearch = $_POST['searchtxt']; if ($txtsearch . length > 0) { $search = $txtsearch; } $mode = $_POST['selmode']; $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['keywordsearch'] = Core_CKeywordSearch::searchKeyWord($search, $sort, $mode); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $cou = $_SESSION['countsearch']; $output['countrecords'] = Core_CKeywordSearch::countSearch($cou); $output['disppagesize'] = Display_DKeywordSearch::displayPageSize(); $output['searchresultfor'] = Display_DKeywordSearch::searchResultFor($search); $output['searchsession'] = Display_DKeywordSearch::searchSession($search); $output['disppricerange'] = Core_CKeywordSearch::priceRange(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") { // store selected sub category for search $output['features'] = Core_CKeywordSearch::featureList(); } $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount(); $output['dispselection'] = Display_DKeywordSearch::displaySelection(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['banner'] = Core_CHome::getBanner(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['mylink'] = Core_CKeywordSearch::linkMode(); $output['sortby'] = Display_DKeywordSearch::sortBy(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('searchpage.html', $output); }
/** * This function is used to Display the product detail page * * @return string */ function productDetail() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('PRODUCT_DETAILS'); $_SESSION['url'] = $_GET['do']; include 'classes/Core/CHome.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Core/CAddCart.php'; include 'classes/Core/CWishList.php'; include 'classes/Core/CLastViewedProducts.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Display/DAddCart.php'; include 'classes/Display/DWishList.php'; include 'classes/Display/DLastViewedProducts.php'; include 'classes/Lib/TagClouds.php'; include 'classes/Core/CTagClouds.php'; include_once 'classes/Core/CCurrencySettings.php'; include_once 'classes/Display/DCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); //--------- Details for Header---------------// $output['skinname'] = Core_CHome::skinName(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['sitelogo'] = Core_CHome::getLogo(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); //--------- Details for Left Part-----------// $output['relatedproduct'] = Core_CProductDetail::disprelatedProduct(); $output['currencylist'] = Core_CCurrencySettings::displayEnabledCurrencies(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['tagClouds'] = Core_CTagClouds::displayTagClouds(); //--------- Details for Product Part-----------// $default = new Core_CProductDetail(); $output['product'] = $default->productDetail(); // $output['pageinfo']=$default->pageInfo(); $output['attributes'] = $default->attributeList(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['cartcount'] = Core_CAddCart::countCart(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); Bin_Template::createTemplate('productdetail.html', $output); unset($_SESSION['reviewResult']); unset($_SESSION['reviewResultSuccess']); unset($_SESSION['quantitymsg']); unset($_SESSION['error_quantity']); }
/** * This function is used to display view wishlist page * * @return string */ function viewWishList() { if (!isset($_SESSION['user_id'])) { $_SESSION['RequestUrl'] = '?do=wishlist&action=showwishlist'; header("Location:?do=login"); } else { include_once 'classes/Core/CWishList.php'; include_once 'classes/Display/DWishList.php'; include_once 'classes/Core/CUserRegistration.php'; include_once 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CKeywordSearch.php'; include_once 'classes/Display/DKeywordSearch.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); include_once 'classes/Core/CHome.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Display/DAddCart.php'; $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $output['wishlist']['wishlist'] = Core_CWishList::viewWishList(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); } $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CWishList::viewWishList(); $output['cartcount'] = Core_CAddCart::countCart(); // Bin_Template::createTemplate('userIndex.html', $output); } }
/** * This function is used to check and download digital product for my downloads * * @return string */ function CheckDigitalProduct() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('MY_DOWNLOADS'); $this->checkLogin(); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserWishList.php'; include_once 'classes/Core/CHome.php'; include "classes/Lib/HandleErrors.php"; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CUserOrder.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); Core_CUserWishList::Ulogin($Err); $output['val'] = $Err->values; $output['msg'] = $Err->messages; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['divStat'] = Core_CUserWishList::getStatus(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CUserOrder::CheckDigitalProduct($result); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to display new letter subscription page * * @return string */ function addNewsletterSubscription() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('HOME'); include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $default = new Core_CFeaturedItems(); $output['maincatimage'] = $default->showMainCategory(); $output['allfeaturedproducts'] = $default->featuredProducts(); $output['showBestSellingProducts'] = $default->showBestSellingProducts(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); include 'classes/Core/CHome.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['timezone'] = Core_CHome::setTimeZone(); $output['homepageads'] = Core_CHome::showHomePageAds(); $output['homepagecontent'] = Core_CHome::showHomePageContent(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['banner'] = Core_CHome::getBanner(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['cartcount'] = Core_CAddCart::countCart(); $default = new Core_CFeaturedItems(); $output['maincatimage'] = $default->showMainCategory(); $output['newarrivalproducts'] = $default->newArrivalProducts(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::snapshotForHome(); } $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['slideshow'] = Core_CUserRegistration::viewSlideShow(); $output['slideshowparameter'] = Core_CUserRegistration::getSlideShowParameter(); $output['newsletter'] = Core_CUserRegistration::addNewsletterSubscription(); Bin_Template::createTemplate('index.html', $output); }
/** * This function is used to Display the about us Page * * @return string */ function aboutUs() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include 'classes/Core/CFooterLinks.php'; include 'classes/Display/DFooterLinks.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['categories'] = Display_DUserRegistration::showMainCat(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['terms'] = Core_CFooterLinks::termsCondition(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['aboutus'] = Core_CFooterLinks::aboutUs(); $output['newstitle'] = Core_CNews::showNewsMenu(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('aboutus.html', $output); }
/** * This function is used to validate the shipping address. * * * * @return string */ function validateShippingAddress() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CHECK_OUT'); include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); include "classes/Lib/CheckInputs.php"; $obj = new Lib_CheckInputs('shippingaddress'); if (!isset($_SESSION['user_id'])) { header('Location:?do=index'); } else { include_once 'classes/Core/CAddCart.php'; include_once 'classes/Display/DAddCart.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Lib/TagClouds.php'; include 'classes/Core/CTagClouds.php'; include 'classes/Core/CUserAddressBook.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['signup'] = Display_DUserRegistration::signUp(); $lastobj = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $lastobj->lastViewedProducts(); $default = new Core_CAddCart(); $output['showcart'] = $default->insertShippingAddress(); $output['cartcount'] = Core_CAddCart::countCart(); $output['tagClouds'] = Core_CTagClouds::displayTagClouds(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); Bin_Template::createTemplate('addtocart.html', $output); } }
function gridGiftProducts() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('COMMON'); include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $default = new Core_CNewProducts(); $output['gridviewproducts'] = $default->viewGiftProducts(); $output['categorybreadcrumb'] = $default->categoryBreadCrumb(); $output['title'] = $default->getTitle(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('gift_grid_products.html', $output); }