Beispiel #1
0
 /**
  * This function is used to Display the quick information of product  page
  *
  * @return string
  */
 function showQuickInfo()
 {
     include 'classes/Core/CQuickInfo.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Core/CWishList.php';
     include 'classes/Core/CHome.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include 'classes/Core/CUserRegistration.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['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['result'] = Core_CQuickInfo::showInfo();
     Bin_Template::createTemplate('quickinfo.html', $output);
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 /**
  * This function is used to Display the News Page
  *
  * @return string
  */
 function showNewsPage()
 {
     //language
     include_once 'classes/Core/CLanguage.php';
     Core_CLanguage::setLanguage('CMS');
     include_once 'classes/Core/CFeaturedItems.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include 'classes/Core/CNews.php';
     include 'classes/Display/DNews.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/CHome.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CProductDetail.php';
     include 'classes/Display/DProductDetail.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['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['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     $output['signup'] = Display_DUserRegistration::signUp();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     if ($_SESSION['user_id'] != '') {
         $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     }
     $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();
     $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu();
     $output['categories'] = Display_DUserRegistration::showMainCat();
     $output['categorytree'] = Core_CProductDetail::showCategoryTree();
     $output['newscontent'] = Core_CNews::showNewsPage();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     Bin_Template::createTemplate('news.html', $output);
 }
Beispiel #4
0
 /**
  * This function is used to Display the price compare page
  *
  * @return string
  */
 function showPriceComparePage()
 {
     include_once 'classes/Core/CPriceCompare.php';
     include_once 'classes/Display/DPriceCompare.php';
     include_once 'classes/Core/CUserRegistration.php';
     include_once 'classes/Display/DUserRegistration.php';
     include_once 'classes/Core/CWishList.php';
     include_once 'classes/Display/DWishList.php';
     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/CHome.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/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $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['signup'] = Display_DUserRegistration::signUp();
     $output['skinname'] = Core_CHome::skinName();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode();
     $output['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $default = new Core_CPriceCompare();
     $output['pricecompare'] = $default->showPriceComparePage();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     if ($_SESSION['user_id'] != '') {
         $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     }
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $default = new Core_CNewProducts();
     $output['newproducts'] = $default->newProducts();
     $output['userRight'] = "userdashboard.html";
     $output['rows'] = Core_CPriceCompare::showPriceComparePage();
     Bin_Template::createTemplate('userIndex.html', $output);
 }
Beispiel #5
0
 /**
  * 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);
 }
Beispiel #6
0
 /**
  * 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);
 }
Beispiel #7
0
 /**
  * This function is used to Display the Featured Product Page
  *
  * @return string
  */
 function showFeaturedProduct()
 {
     include_once 'classes/Core/CFeaturedItems.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CWishList.php';
     include 'classes/Display/DWishList.php';
     include_once 'classes/Display/DFeaturedItems.php';
     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/CHome.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include 'classes/Lib/TagClouds.php';
     include 'classes/Core/CTagClouds.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['categories'] = Display_DUserRegistration::showMainCat();
     $output['signup'] = Display_DUserRegistration::signUp();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     if ($_SESSION['user_id'] != '') {
         $output['wishlistsnapshot'] = Core_CWishList::snapshotForHome();
     }
     $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();
     $default = new Core_CFeaturedItems();
     $output['subcatbreadcrumb'] = $default->subcatBreadCrumb();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['subcatlandcontent'] = $default->getSubcatlandContent();
     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['tagClouds'] = Core_CTagClouds::displayTagClouds();
     $output['showBestSellingProducts'] = Core_CFeaturedItems::showBestSellingProducts();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     $sort = $_POST['selsort'];
     $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['timezone'] = Core_CHome::setTimeZone();
     $sort = $_POST['selsort'];
     $mode = $_POST['selmode'];
     $output['narrowsearch'] = Core_CKeywordSearch::narrowSearch($sort, $mode);
     $cou = $_SESSION['countsearch'];
     $output['countrecords'] = Core_CKeywordSearch::countSearch($cou);
     $output['disppagesize'] = Display_DKeywordSearch::displayPageSize();
     if ((int) $_SESSION['countsearch'] > 0) {
         $output['dispselection'] = Display_DKeywordSearch::displaySelection();
     }
     $output['disppricerange'] = Core_CKeywordSearch::priceRange();
     if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") {
         $output['features'] = Core_CKeywordSearch::featureList();
     }
     $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount();
     $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory();
     $output['mylink'] = Core_CKeywordSearch::linkMode();
     $output['sortby'] = Display_DKeywordSearch::sortBy();
     $output['viewproducts'] = Core_CFeaturedItems::viewProducts();
     $output['searchoptions'] = Core_CFeaturedItems::dispSearch();
     $output['narrow'] = Core_CFeaturedItems::dispNarrow();
     $output['pricenarrow'] = Core_CFeaturedItems::dispPriceNarrow();
     $output['brandnarrow'] = Core_CFeaturedItems::dispBrandNarrow();
     Bin_Template::createTemplate('subcategory.html', $output);
 }
Beispiel #8
0
 /**
  * This function is used to Display the compare product  page
  *
  * @return string
  */
 function compareProduct()
 {
     include "classes/Lib/HandleErrors.php";
     $output['val'] = $Err->values;
     $output['msg'] = $Err->messages;
     include 'classes/Core/CProductReview.php';
     include 'classes/Display/DProductReview.php';
     include 'classes/Display/DWishList.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CWishList.php';
     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/CHome.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/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['signup'] = Display_DUserRegistration::signUp();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $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['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['reviewproduct'] = Core_CProductReview::showProductReview($Err);
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     $default = new Core_CWishList();
     $output['wishlist'] = $default->addtoWishList();
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $default = new Core_CNewProducts();
     $output['newproducts'] = $default->newProducts();
     $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     Bin_Template::createTemplate('reviews.html', $output);
 }
Beispiel #9
0
 /**
  * This function is used to Display the Extended Search Page
  *
  * @return HTML data
  */
 function extendedSearch()
 {
     include_once 'classes/Core/CFeaturedItems.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CWishList.php';
     include 'classes/Display/DWishList.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include_once 'classes/Core/CNewProducts.php';
     include_once 'classes/Display/DNewProducts.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     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();
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Core/CHome.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['banner'] = Core_CHome::getBanner();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $sort = $_POST['selsort'];
     $mode = $_POST['selmode'];
     $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory();
     $output['extendedsearch'] = Core_CKeywordSearch::extendedSearch($sort, $mode);
     $cou = $_SESSION['countsearch'];
     $output['countrecords'] = Core_CKeywordSearch::countSearch($cou);
     $output['disppagesize'] = Display_DKeywordSearch::displayPageSize();
     $output['searchsession'] = Display_DKeywordSearch::searchSession($search);
     $output['disppricerange'] = Core_CKeywordSearch::priceRange();
     if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") {
         $output['features'] = Core_CKeywordSearch::featureList();
     }
     if ((int) $_SESSION['countsearch'] > 0) {
         $output['dispselection'] = Display_DKeywordSearch::displaySelection();
     }
     $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['mylink'] = Core_CKeywordSearch::linkMode();
     $output['sortby'] = Display_DKeywordSearch::sortBy();
     Bin_Template::createTemplate('searchpage.html', $output);
 }
Beispiel #10
0
 /**
  * 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']);
 }
Beispiel #11
0
 /**
  * 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);
 }
Beispiel #12
0
 /**
  * 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);
 }
Beispiel #13
0
 /**
  * This function is used to find  the extended search
  * @param integer $sort
  * @param string $mode
  * @return string
  */
 function extendedSearch($sort, $mode)
 {
     $attrib_value_id = $_GET['attrib_value_id'];
     $catid = $_GET['category'];
     $pagesize = 10;
     if (isset($_GET['page'])) {
         $start = trim($_GET['page'] - 1) * $pagesize;
         $end = $pagesize;
     } else {
         $start = 0;
         $end = $pagesize;
     }
     $total = 0;
     $sortby = $_POST['selsort'];
     if (empty($sortby)) {
         $sortby = 0;
     }
     $catid = $_POST['subcatsel'];
     if (empty($catid)) {
         $catid = $_GET['category'];
     }
     $ob = new Core_CKeywordSearch();
     $subcategoryname = $ob->categoryName($catid);
     $mm = $_SESSION['category'];
     $categoryname = $ob->categoryName($mm);
     $head = $_GET['head'];
     $attib_value_id = $_GET['attrib_value_id'];
     // echo 'the value is '.$attib_value_id;
     $brand = $_GET['brand'];
     if ((int) $attib_value_id > 0) {
         $_SESSION['selectedbrand'] = 'You have Selected <b>' . $categoryname . '</b> >><b> ' . $subcategoryname . '</b>>>' . '<b> ' . $head . ' </b>';
     } elseif (count($brand) > 0) {
         $_SESSION['selectedbrand'] = 'You have Selected <b>' . $categoryname . '</b> >><b> ' . $subcategoryname . '</b>';
     }
     if ((int) $attrib_value_id > 0) {
         if ($sortby == 0) {
             //$sql="select * from products_table a inner join product_attrib_values_table b on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on d.category_id=c.category_parent_id where b.attrib_value_id=".$attrib_value_id." and category_id=".catid." group by a.title  order by a.msrp";
             //  $sql="select a.* from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id where b.attrib_value_id=".$attrib_value_id." and c.category_parent_id=".$catid ." order by a.msrp";
             $sql = "select a.*,sum(r.rating)/count(r.user_id) as rating,count(r.user_id) as rcount from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id where b.attrib_value_id=" . $attrib_value_id . "  and c.category_id=" . $catid . " and a.intro_date <= '" . date('Y-m-d') . "' and a.status=1 group by a.product_id order by a.msrp";
         } elseif ($sortby == 1) {
             //$sql="select * from products_table a inner join product_attrib_values_table b on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on d.category_id=c.category_parent_id where b.attrib_value_id=".$attrib_value_id." ".$mycat." group by a.title  order by a.msrp desc ";
             // $sql="select a.* from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id where b.attrib_value_id=".$attrib_value_id." and c.category_parent_id=".$catid ." order by a.msrp desc";
             $sql = "select a.*,sum(r.rating)/count(r.user_id) as rating,count(r.user_id) as rcount from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id left join product_reviews_table r on a.product_id=r.product_id where b.attrib_value_id=" . $attrib_value_id . "  and c.category_id=" . $catid . " and a.intro_date <= '" . date('Y-m-d') . "' and a.status=1 group by a.product_id order by a.msrp desc";
         } elseif ($sortby == 2) {
             // $sql="select * from products_table a inner join product_attrib_values_table b on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on d.category_id=c.category_parent_id where b.attrib_value_id=".$attrib_value_id." ".$mycat." group by a.title  order by a.title";
             // $sql="select a.* from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id where b.attrib_value_id=".$attrib_value_id." and c.category_parent_id=".$catid ." order by a.title";
             $sql = "select a.*,sum(r.rating)/count(r.user_id) as rating,count(r.user_id) as rcount from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id left join product_reviews_table r on a.product_id=r.product_id where b.attrib_value_id=" . $attrib_value_id . "  and c.category_id=" . $catid . " and a.intro_date <= '" . date('Y-m-d') . "' and a.status=1 group by a.product_id order by a.title";
         } elseif ($sortby == 3) {
             //$sql="select * from products_table a inner join product_attrib_values_table b on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on d.category_id=c.category_parent_id where b.attrib_value_id=".$attrib_value_id." ".$mycat." group by a.title  order by a.title desc ";
             //$sql="select a.* from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id where b.attrib_value_id=".$attrib_value_id." and c.category_parent_id=".$catid ." order by a.title desc";
             $sql = "select a.*,sum(r.rating)/count(r.user_id) as rating,count(r.user_id) as rcount from products_table a inner join product_attrib_values_table b  on a.product_id=b.product_id inner join category_table c on c.category_id=a.category_id inner join category_table d on c.category_parent_id=d.category_id left join product_reviews_table r on a.product_id=r.product_id where b.attrib_value_id=" . $attrib_value_id . "  and c.category_id=" . $catid . " and a.intro_date <= '" . date('Y-m-d') . "' and a.status=1 group by a.product_id order by a.title desc";
         }
     }
     $obj = new Bin_Query();
     if ($obj->executeQuery($sql)) {
         $_SESSION['countsearch'] = $obj->totrows;
         $sql1 = $sql . ' LIMIT ' . $start . ',' . $end;
         $total = ceil($obj->totrows / $pagesize);
         include 'classes/Lib/paging.php';
         $tmp = new Lib_Paging('classic', array('totalpages' => $total, 'length' => 10), 'pagination');
         $this->data['paging'] = $tmp->output;
         $this->data['prev'] = $tmp->prev;
         $this->data['next'] = $tmp->next;
         $query = new Bin_Query();
         if ($query->executeQuery($sql1)) {
             $i = 0;
             if ((int) $query->totrows > 0) {
                 foreach ($query->records as $row) {
                     $r[$i] = $row;
                     $prid = $row['product_id'];
                     $obj1 = new Core_CKeywordSearch();
                     $minval = $obj1->disRates($prid);
                     if ($minval > 0 or $minval != '') {
                         $r[$i]['msrp'] = '$' . number_format($row['msrp'], 2) . ' - $' . number_format($minval, 2);
                     } else {
                         $r[$i]['msrp'] = '$' . number_format($row['msrp'], 2);
                     }
                     $i++;
                 }
             }
         }
         return Display_DKeywordSearch::extendedSearch($r, $mode, $this->data['paging'], $this->data['prev'], $this->data['next']);
     }
 }
Beispiel #14
0
 /**
  * Function returns the feature list of products
  * 
  * 
  * @return string
  */
 function featureList()
 {
     $id = $_POST['id'];
     $id = 2;
     $sql1 = 'select distinct a.attrib_name,a.attrib_id from attribute_table a join attribute_value_table b on a.attrib_id=b.attrib_id inner join category_attrib_table c on c.attrib_id=b.attrib_id inner join category_table d on c.subcategory_id=d.category_id where d.category_id=' . $id;
     $obj1 = new Bin_Query();
     $obj1->executeQuery($sql1);
     $sql = 'select a.attrib_id,a.attrib_name,b.attrib_value_id,b.attrib_value,d.category_name,d.category_id from attribute_table a inner join attribute_value_table b on a.attrib_id=b.attrib_id inner join category_attrib_table c on c.attrib_id=b.attrib_id inner join category_table d on c.subcategory_id=d.category_id where d.category_id=' . $id;
     $obj = new Bin_Query();
     $obj->executeQuery($sql);
     for ($i = 0; $i < $obj->totrows; $i++) {
         if ($obj->records[$i]['attrib_value_id'] != 0) {
             $obj->records[$i]['productCnt'] = Core_CKeywordSearch::getProductCount($obj->records[$i]['attrib_value_id']);
         }
     }
     return Display_DKeywordSearch::featureList($obj1->records, $obj->records);
 }
Beispiel #15
0
 /**
  * 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);
     }
 }
Beispiel #16
0
 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);
 }