I made a few corrections to allow all shipping info to be displayed and in doing so I also corrected a couple small things.
This displays
* adds space between the weight and the unit.
* displays correct weight unit
* all the dimensions for shipping.
* I also bolded the titles
[tpl_product_info_display.php]
PHP Code:
<!--bof Product details list -->
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li><b>' . TEXT_PRODUCT_WEIGHT .':</b> '. $products_weight . $products_weight_type . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_length !=0) ? '<li><b>' . TEXT_PRODUCT_LENGTH .':</b> '. $products_length .' '. $products_dim_type . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_width !=0) ? '<li><b>' . TEXT_PRODUCT_LENGTH .':</b> '. $products_width .' '. $products_dim_type . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_height !=0) ? '<li><b>' . TEXT_PRODUCT_LENGTH .':</b> '. $products_height .' '. $products_dim_type . '</li>' : '') . "\n"; ?>
[main_template_vars.php]
aprox line 46
PHP Code:
$sql = "select p.products_id, pd.products_name,
pd.products_description, p.products_model,
p.products_quantity, p.products_image,
pd.products_url, p.products_price,
p.products_tax_class_id, p.products_date_added,
p.products_date_available, p.manufacturers_id, p.products_quantity,
p.products_weight, p.products_priced_by_attribute, p.product_is_free,
p.products_qty_box_status,
p.products_quantity_order_max,
p.products_discount_type, p.products_discount_type_from, p.products_sort_order, p.products_price_sorter,
/* QJS ADDED: Start */
p.products_length, p.products_width, p.products_height,
p.products_weight_type, p.products_dim_type
/* QJS ADDED: End */
aprox line 118
PHP Code:
// QJS ADDED: Start
$products_length = $product_info->fields['products_length'];
$products_width = $product_info->fields['products_width'];
$products_height = $product_info->fields['products_height'];
$products_dim_type = $product_info->fields['products_dim_type'];
$products_weight_type = $product_info->fields['products_weight_type'];
// QJS ADDED: End
[includes\languages\english\YOUR TEMPLATE\product_info.php]
PHP Code:
<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: product_info.php 6371 2007-05-25 19:55:59Z ajeh $
*/
define('TEXT_PRODUCT_LENGTH', 'Shipping Length: ');
define('TEXT_PRODUCT_WIDTH', 'Shipping Width: ');
define('TEXT_PRODUCT_HEIGHT', 'Shipping Height: ');
?>
Hope this helps others wondering why their weight saiys KG and they know it was entered in LB.
Bookmarks