In your ADMIN folder on the server, you have an INCLUDES FOLDER.
Inside that you have a MODULES FOLDER.
Inside that you have several folders... Open the folder called PRODUCTS.
Inside that there is a file: collect_info.php
FTP a COPY of that file to your local machine, then open it for editing using a PLAIN TEXT EDITOR:
Find the section (from the top) that contains:
PHP Code:
<?php
/**
* @package admin
* @copyright Copyright 2003-2010 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: collect_info.php 17947 2010-10-13 20:29:41Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$parameters = array('products_name' => '',
'products_description' => '',
'products_url' => '',
'products_id' => '',
'products_quantity' => '',
'products_model' => '',
'products_image' => '',
'products_price' => '',
'products_virtual' => DEFAULT_PRODUCT_PRODUCTS_VIRTUAL,
'products_weight' => '',
'products_date_added' => '',
'products_last_modified' => '',
'products_date_available' => '',
'products_status' => '',
'products_tax_class_id' => DEFAULT_PRODUCT_TAX_CLASS_ID,
'manufacturers_id' => '',
'products_quantity_order_min' => '',
'products_quantity_order_units' => '',
'products_priced_by_attribute' => '',
'product_is_free' => '',
'product_is_call' => '',
'products_quantity_mixed' => '',
'product_is_always_free_shipping' => DEFAULT_PRODUCT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING,
'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS,
'products_quantity_order_max' => '0',
'products_sort_order' => '0',
'products_discount_type' => '0',
'products_discount_type_from' => '0',
'products_price_sorter' => '0',
'master_categories_id' => ''
);
SEE THE LINE THAT SAYS:
'products_weight' => '',
EDIT IT TO LOOK LIKE THIS:
'products_weight' => '0.125',
SAVE the file on your hard drive.
BEFORE you send it to the server (to REPLACE the original collect_info.php, you must RE-NAME this original file collect_info.BAK
Then you FTP your edited copy to the same location.
You now have a BAK-up of the original, in case you made a hash of the editing, you can revert to your backup copy, simply by changing it back to collect_info.php .
Bookmarks