Beispiel #1
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 #2
0
 /**
  * Function displays the list of last viewed products   
  * 
  * @return array
  */
 function lastViewedProducts()
 {
     include_once 'classes/Core/CProductDetail.php';
     include_once 'classes/Display/DProductDetail.php';
     $default = new Core_CProductDetail();
     $output['product'] = $default->productDetail();
     $output['attributes'] = $default->attributeList();
     $output['relprod'] = $default->relatedProducts();
     $output['lastviewprod'] = $default->lastViewedProducts();
     Bin_Template::createTemplate('productdetail.html', $output);
 }