| [ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: product_reviews.php 3 2006-05-27 04:59:07Z user $ 4 5 osCMax Power E-Commerce 6 http://oscdox.com 7 8 Copyright 2006 osCMax 9 10 Released under the GNU General Public License 11 */ 12 13 // Most of this file is changed or moved to BTS - Basic Template System - format. 14 // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). 15 // catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). 16 // (Sub 'fallback' with your current template to see if there is a template specific file.) 17 18 require ('includes/application_top.php'); 19 20 // LINE ADDED: MOD - Added for Dynamic MoPics v3.000 21 require (DIR_WS_FUNCTIONS . 'dynamic_mopics.php'); 22 $product_info_query = tep_db_query("select p.products_id, p.products_model, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); 23 if (!tep_db_num_rows($product_info_query)) { 24 tep_redirect(tep_href_link(FILENAME_REVIEWS)); 25 } else { 26 $product_info = tep_db_fetch_array($product_info_query); 27 } 28 29 // BOF: MOD - Separate Pricing Per Customer 30 // global variable (session) $sppc_customer_group_id -> local variable customer_group_id 31 32 if(!tep_session_is_registered('sppc_customer_group_id')) { 33 $customer_group_id = '0'; 34 } else { 35 $customer_group_id = $sppc_customer_group_id; 36 } 37 38 if ($customer_group_id !='0') { 39 $customer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_group_id = '" . $customer_group_id . "'"); 40 if ($customer_group_price = tep_db_fetch_array($customer_group_price_query)) { 41 $product_info['products_price'] = $customer_group_price['customers_group_price']; 42 } 43 } 44 // EOF: MOD - Separate Pricing Per Customer 45 if ($new_price = tep_get_products_special_price($product_info['products_id'])) { 46 $products_price = '<span style="text-decoration:line-through">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; 47 } else { 48 $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); 49 } 50 51 if (tep_not_null($product_info['products_model'])) { 52 $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; 53 } else { 54 $products_name = $product_info['products_name']; 55 } 56 57 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_REVIEWS); 58 59 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); 60 61 $content = CONTENT_PRODUCT_REVIEWS; 62 $javascript = 'popup_window.js'; 63 64 include (bts_select('main', $content_template)); // BTSv1.5 65 66 require (DIR_WS_INCLUDES . 'application_bottom.php'); 67 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |