=$h1_title?>
if ($product_check['total'] < 1) { ?>
The product you requested is not currently available in our catalogue.
The product may not be available because:
- The product never existed.
- The product is no longer available.
- The web address was mistyped.
If you are looking for a specific product and are having trouble finding it on our web site please get in contact with us as we can most likely help you.
‘; if ($product_info[‘products_price’]>$special) { $display_prices.= $price.’ | ‘; } $display_prices.=’
‘.$currencies->display_price($special, tep_get_tax_rate($product_info[‘products_tax_class_id’])); $display_prices.=’ |
Saving of ‘.tep_you_save(tep_get_tax_rate($product_info[‘products_tax_class_id’]), 0, $product_info[‘products_price’], $special,’N’).’ | ‘; if ($product_info[‘products_price’]>$special) { $display_prices.= $price.’ | ‘; } $display_prices.=’
‘.$gb_price.’ |
Saving of ‘.tep_you_save(tep_get_tax_rate($product_info[‘products_tax_class_id’]), 0, $product_info[‘products_price’], $group_buy[‘price’],’N’).’ | ‘; $display_prices.= $price.’ | ‘; $reward_price = $price; } $display_prices.=’
// Product image
$prod_image = $http_prot.'://www.modyourcar.com.au/images/'.$product_info['products_image'];
list($width, $height, $type, $attr) = getimagesize($prod_image);
$prod_size = '';
if (($width > 100) || ($height > 100)) $prod_size = ‘ width=100px height=100px’;
$image_margin=”;
if ($height<100) {
$t = abs($height - 100);
$t = number_format($t/2,0);
$image_margin = 'style="margin-top:'.$t.'px;"';
}
if (tep_not_null($product_info['products_bimage'])) {
?>
” alt=”=$product_info['products_name']?>“=$image_margin.$prod_size?>>
Click to enlarge
} else {
?>
” alt=”=$product_info['products_name']?>“=$image_margin.$prod_size?>>
}
//Do not display if product is a number plate
if (($product_info['products_type']!='Y')&&($product_info['products_type']!='G')) {
echo 'Image is a representation. ‘;
}
if ($product_info[‘products_type’]==’N’) {
for ($s=0 ; $sActual part may vary. |
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
echo ‘Product Options ‘; $products_options_name_query = tep_db_query(“select distinct popt.products_options_id, popt.products_options_name from ” . TABLE_PRODUCTS_OPTIONS . ” popt, ” . TABLE_PRODUCTS_ATTRIBUTES . ” patrib where patrib.products_id='” . $_GET[‘products_id’] . “‘ and patrib.options_id = popt.products_options_id and popt.language_id = ‘” . $languages_id . “‘ order by popt.products_options_name”); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query(“select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from ” . TABLE_PRODUCTS_ATTRIBUTES . ” pa, ” . TABLE_PRODUCTS_OPTIONS_VALUES . ” pov where pa.products_id = ‘” . $_GET[‘products_id’] . “‘ and pa.options_id = ‘” . $products_options_name[‘products_options_id’] . “‘ and pa.options_values_id = pov.products_options_values_id and pov.language_id = ‘” . $languages_id . “‘ order by pa.order asc, pov.products_options_values_name”); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array(‘id’ => $products_options[‘products_options_values_id’], ‘text’ => $products_options[‘products_options_values_name’]); if ($products_options[‘options_values_price’] != ‘0’) { $products_options_array[sizeof($products_options_array)-1][‘text’] .= ‘ (‘ . $products_options[‘price_prefix’] . $currencies->display_price($products_options[‘options_values_price’], tep_get_tax_rate($product_info[‘products_tax_class_id’])) .’) ‘; } } if (isset($cart->contents[$_GET[‘products_id’]][‘attributes’][$products_options_name[‘products_options_id’]])) { $selected_attribute = $cart->contents[$_GET[‘products_id’]][‘attributes’][$products_options_name[‘products_options_id’]]; } else { $selected_attribute = false; } echo $products_options_name[‘products_options_name’] . ‘: ‘; // Products with long attribute names need to have fixed width so it doesnt screw up page if ($_GET[‘products_id’] == ‘485’) { // Apexi Power FC echo tep_draw_pull_down_menu(‘id[‘ . $products_options_name[‘products_options_id’] . ‘]’, $products_options_array, $selected_attribute,’style=”width:170px;”‘).’ ‘; } else { echo tep_draw_pull_down_menu(‘id[‘ . $products_options_name[‘products_options_id’] . ‘]’, $products_options_array, $selected_attribute).’ ‘; } } echo “ “; } // Specials, free shipping and group buy icons $icons_text=”; if ($free_ship==’Y’) { $icons = ‘Y’; $icons_text .= ‘‘; } if ($icons == ‘Y’) $icons_text .= “ “; if ($special>0) { $icons_text .= ‘‘; $icons = ‘Y’; } elseif ($product_info[‘group_buy’]==’Y’) { $icons_text .= ‘‘; $icons = ‘Y’; } if ($icons == ‘Y’) { echo $icons_text; } //echo tep_draw_separator(‘pixel_trans.gif’, ‘100%’, ‘5’).’ ‘.$display_prices; echo ” | “.$display_prices;
?>
|