Forums / Customization from the Admin / How do I make the weight the same on all listing when adding a product?

How do I make the weight the same on all listing when adding a product?

Views: 1,913

Results 1 to 4 of 4
28 Mar 2012, 8:51 PM
#1
cahoca avatar

cahoca

New Zenner

Join Date:
Jun 2011
Posts:
20
Plugin Contributions:
0

How do I make the weight the same on all listing when adding a product?

My weight is the same on my items all the same- .125 and I'd like to make this a standard in the weight area when I am adding a new product so I don't have to type it in all the time. How can I do this? Thanks!

28 Mar 2012, 9:27 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How do I make the weight the same on all listing when adding a product?

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
/**
 * @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 .

20 years a Zencart User

3 Apr 2012, 3:29 AM
#3
cahoca avatar

cahoca

New Zenner

Join Date:
Jun 2011
Posts:
20
Plugin Contributions:
0

Re: How do I make the weight the same on all listing when adding a product?

That was awesome! It worked Thank You SO MUCH!!:clap:

3 Apr 2012, 8:57 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How do I make the weight the same on all listing when adding a product?

Glad it worked, but "awesome" is perhaps a little strong for such a simple procedure. Neil Armstrong setting foot on the moon is "awesome". :D

20 years a Zencart User