Пример #1
0
 /**
  * This function is used to Display the last view viewed product page
  *
  * @return string
  */
 function lastViewedProducts()
 {
     include_once 'classes/Core/CProductDetail.php';
     include_once 'classes/Display/DProductDetail.php';
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Lib/TagClouds.php';
     include 'classes/Core/CTagClouds.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $output['tagClouds'] = Core_CTagClouds::displayTagClouds();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $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);
 }
Пример #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);
 }