Exemplo n.º 1
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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
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);
 }
Exemplo n.º 6
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);
 }
Exemplo n.º 7
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']);
 }
Exemplo n.º 8
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);
 }
Exemplo n.º 9
0
 /**
  * This function is used to register the user from google
  * 
  * @return bool
  */
 function googleautoRegister($me)
 {
     include '../../../../classes/Core/CUserRegistration.php';
     $objUser = new Core_CUserRegistration();
     $objUser->googleautoRegister($me);
 }
Exemplo n.º 10
0
 /**
  * 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);
 }
Exemplo n.º 11
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);
 }
Exemplo n.º 12
0
 /**
  * This function is used for quick registration for guest user
  *
  * 
  * @return string
  */
 function doQuickRegistration()
 {
     if ($_SESSION['user_id'] == '') {
         $displayname = substr($_POST['txtregemail'], 0, strpos($_POST['txtregemail'], '@'));
         $email = $_POST['txtregemail'];
         $pswd = $_POST['txtregpass'];
         $date = date('Y-m-d');
         if ($newsletter == '') {
             $newsletter = 0;
         }
         if (count($Err->messages) > 0) {
             $output['val'] = $Err->values;
             $output['msg'] = $Err->messages;
         } else {
             if ($displayname != '' and $email != '' and $pswd != '') {
                 $checksql = "SELECT COUNT(user_email) AS count FROM users_table WHERE user_email='" . $email . "'";
                 $checkqry = new Bin_Query();
                 $checkqry->executeQuery($checksql);
                 $count = $checkqry->records[0]['count'];
                 if ($count <= 0) {
                     $pswd = base64_encode($pswd);
                     $sql = "insert into users_table (user_display_name,user_email,user_pwd,user_status,user_doj) values('" . $displayname . "','" . $email . "','" . $pswd . "',1,'" . $date . "')";
                     $obj = new Bin_Query();
                     if ($obj->updateQuery($sql)) {
                         $result = "<div class='success_msgbox'>Account has been Created Successfully</div></br>";
                         $pwd = $_POST['txtregpass'];
                         $title = "Zeuscart";
                         $mail_content = "Thank you for registering with us. Your Login Details are given below<br>\n\t\t\t\t\t\t\tUserName :"******"<br>Password:"******"<div class='exc_msgbox'>" . Core_CLanguage::_(ACCOUNT_NOT_CREATED) . "/div></br>";
                     }
                 } else {
                     $result = "<div class='exc_msgbox'>" . Core_CLanguage::_(EMAIL_TRY) . "</div></br>";
                 }
             }
         }
         $err = $Err->messages;
         return Display_DAddCart::showQuickRegistration($result, $err);
     }
 }
Exemplo n.º 13
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);
     }
 }
Exemplo n.º 14
0
 /**
  * This function is used to Display the Featured Items
  *
  * @return string
  */
 function showFeaturedItems()
 {
     include_once 'classes/Core/CFeaturedItems.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CKeywordSearch.php';
     include_once 'classes/Display/DKeywordSearch.php';
     include_once 'classes/Core/CHome.php';
     include 'classes/Lib/TagClouds.php';
     include 'classes/Core/CTagClouds.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.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['banner'] = Core_CHome::getBanner();
     $output['signup'] = Display_DUserRegistration::signUp();
     $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['categories'] = Display_DUserRegistration::showMainCat();
     $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();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $default = new Core_CFeaturedItems();
     $output['featured'] = $default->featuredProducts();
     Bin_Template::createTemplate('featureditems.html', $output);
 }
Exemplo n.º 15
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);
 }
Exemplo n.º 16
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);
 }
Exemplo n.º 17
0
    /**
     * This function is used to insert news letter subscription  
     *
     * .
     * 
     * @return string
     */
    function addNewsletterSubscription()
    {
        $email = $_POST['email'];
        if ($_POST['email'] == '' || $_POST['email'] == 'Your Email') {
            $output = '<div class="alert alert-error">
			<button data-dismiss="alert" class="close" type="button">×</button>
			' . Core_CLanguage::_(REQUIRED) . '
			</div>';
            return $output;
        } elseif ($_POST['email'] != '') {
            $query = new Bin_Query();
            $sql = 'select count(*) as count from newsletter_subscription_table where email="' . $email . '"';
            $query->executequery($sql);
            if ($query->records[0]['count'] > 0) {
                $output = '<div class="alert alert-info">
				<button data-dismiss="alert" class="close" type="button">×</button>
				' . Core_CLanguage::_(SCBSCRIBE_NEWS_LETTER_ALREADY_EMAIL_EXISTS) . '
				</div>';
                return $output;
            }
            $checkemail = Core_CUserRegistration::validateEmailAddress($email);
            if ($checkemail) {
                $sql = "insert into newsletter_subscription_table(email,status) values('" . $email . "',1)";
                if ($query->updateQuery($sql)) {
                    $output = '<div class="alert alert-success">
					<button data-dismiss="alert" class="close" type="button">×</button>
					' . Core_CLanguage::_(YOUR_REQUEST_FOR_NEWLETTER_ADDED) . '
					</div>';
                    return $output;
                } else {
                    $output = '<div class="alert alert-error">
					<button data-dismiss="alert" class="close" type="button">×</button>
					' . Core_CLanguage::_(INVALID_EMAIL_FOR_NEWSLETTER) . '
					</div>';
                    return $output;
                }
            } elseif (!$checkemail) {
                $output = '<div class="alert alert-error">
					<button data-dismiss="alert" class="close" type="button">×</button>
					' . Core_CLanguage::_(INVALID_EMAIL_FOR_NEWSLETTER) . '
					</div>';
                return $output;
            }
        }
    }
Exemplo n.º 18
0
    /**
     * 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);
    }
Exemplo n.º 19
0
 /**
  * This function is used to Add the Compare product 
  *
  * .
  * 
  * @return string
  */
 function addtoCompareProduct()
 {
     $flag = 0;
     if ($_SESSION['compareProductId'] != '') {
         $cnt = count($_SESSION['compareProductId']);
     } else {
         $cnt = 0;
     }
     if (($cnt > 1 or $cnt == 1) and $_GET['prodid'] != '' and $_SESSION['compareProductId'][0] != '' and $_SESSION['compareProductId'][0] != $_GET['prodid']) {
         $newobj = new Bin_Query();
         $oldobj = new Bin_Query();
         $oldproductid = $_SESSION['compareProductId'][0];
         $newproductid = $_GET['prodid'];
         $sqlselectold = "SELECT (SELECT t1.category_name FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catname,(SELECT t1.category_id FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catid FROM products_table t2 WHERE t2.product_id in(" . $oldproductid . ")";
         $sqlselectnew = "SELECT (SELECT t1.category_name FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catname,(SELECT t1.category_id FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catid FROM products_table t2 WHERE t2.product_id =" . $newproductid;
         $newobj->executeQuery($sqlselectnew);
         $oldobj->executeQuery($sqlselectold);
         $oldcatname = $oldobj->records[0]['catname'];
         $newcatname = $newobj->records[0]['catname'];
         if ($oldcatname == $newcatname) {
             $_SESSION['catid'] = $newobj->records[0]['catid'];
             $cnt = count($_SESSION['compareProductId']);
             if (!in_array($_GET['prodid'], $_SESSION['compareProductId']) && $cnt < 4 && $_GET['do'] == 'compareproduct') {
                 //for accepting 4 items
                 $_SESSION['compareProductId'][$cnt] = $_GET['prodid'];
             } else {
             }
             $cnt = count($_SESSION['compareProductId']);
             for ($i = 0; $i < $cnt; $i++) {
                 setcookie("compareProductId[{$i}]", $_SESSION['compareProductId'][$i]);
             }
             $product_ids = '"' . implode('","', $_SESSION['compareProductId']) . '"';
         } else {
             $product_ids = '"' . implode('","', $_SESSION['compareProductId']) . '"';
             $output['success'] = "<div class='exc_msgbox'>Please select products with same category</div><br />";
             $flag = 1;
         }
     } elseif (($cnt > 1 or $cnt == 0) and $_GET['prodid'] != '') {
         if ($_SESSION['catid'] == '') {
             $obj = new Bin_Query();
             $sql = "SELECT (SELECT t1.category_name FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catname,(SELECT t1.category_id FROM category_table t1 WHERE t1.category_id = t2.category_id) AS                              catid FROM products_table t2 WHERE t2.product_id =" . (int) $_GET['prodid'];
             $obj->executeQuery($sql);
             $_SESSION['catid'] = $obj->records[0]['catid'];
         }
         if (!isset($_SESSION['compareProductId'][0])) {
             $_SESSION['compareProductId'] = array();
         }
         $cnt = count($_SESSION['compareProductId']);
         if (!in_array($_GET['prodid'], $_SESSION['compareProductId']) && $cnt < 4 && $_GET['do'] == 'compareproduct') {
             //for accepting 4 items
             $_SESSION['compareProductId'][$cnt] = $_GET['prodid'];
         }
         $cnt = count($_SESSION['compareProductId']);
         for ($i = 0; $i < $cnt; $i++) {
             setcookie("compareProductId[{$i}]", $_SESSION['compareProductId'][$i]);
         }
     } else {
         $output['viewProducts']['a'] = '<div style="padding-left:30px;"><font color="orange" style="font-size:11px"><b>No Product(s) Found</b></font></div>';
     }
     if ($_SESSION['compareProductId'] != '') {
         $product_ids = '"' . implode('","', $_SESSION['compareProductId']) . '"';
         if ($product_ids != '') {
             $obj = new Bin_Query();
             $sql = "select product_id,model,title,sku,brand,description,dimension,price,thumb_image from products_table \t\t\t\t\t\t\t\t\t                        where product_id in(" . $product_ids . ")";
             if ($obj->executeQuery($sql)) {
                 $output['viewProducts'] = Display_DWishList::viewProduct($obj->records);
                 $output['loginStatus'] = Core_CUserRegistration::loginStatus();
                 if ($flag == 0 and $_GET['prodid'] != '') {
                     $sql = 'select title from products_table where product_id=' . (int) $_GET['prodid'];
                     if ($obj->executeQuery($sql)) {
                         $output['success'] = '<div class="success_msgbox">Product ' . $obj->records[0]['title'] . ' successfully added to compare list</div><br />';
                     }
                 }
             }
         }
     } else {
         $output['viewProducts'] = Display_DWishList::viewProductElse();
     }
     return $output;
 }