Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * This function is used to get  the   quick information 
  *
  * .
  * 
  * @return array 
  */
 function showInfo()
 {
     include 'classes/Display/DQuickInfo.php';
     $sqlselect = "SELECT a.product_id,a.title,a.price,case when a.status=1 then 'Yes' else 'No' end as status,a.shipping_cost,a.description,a.cse_enabled,a.sku,b.rating,a.image,a.msrp from products_table a left join product_reviews_table b on a.product_id=b.product_id where a.status=1 AND  a.product_id=" . (int) $_GET['prodid'] . " LIMIT 0,1";
     $obj = new Bin_Query();
     if ($obj->executeQuery($sqlselect)) {
         $j = 0;
         foreach ($obj->records as $row) {
             $r[$j] = $row;
             $prid = $row['product_id'];
             $minval = Core_CQuickInfo::disRates($prid);
             if ($minval > 0 or $minval != '') {
                 $r[$j]['msrp'] = $_SESSION['currencysetting']['selected_currency_settings']['currency_tocken'] . number_format($row['msrp'] * $_SESSION['currencysetting']['selected_currency_settings']['conversion_rate'], 2) . ' - ' . $_SESSION['currencysetting']['selected_currency_settings']['currency_tocken'] . number_format($minval * $_SESSION['currencysetting']['selected_currency_settings']['conversion_rate'], 2);
             } else {
                 $r[$j]['msrp'] = $_SESSION['currencysetting']['selected_currency_settings']['currency_tocken'] . number_format($row['msrp'] * $_SESSION['currencysetting']['selected_currency_settings']['conversion_rate'], 2);
             }
             $j++;
         }
         return Display_DQuickInfo::showInfo($obj->records[0], $r);
     }
 }