Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Is there a default shipping weight ?

Is there a default shipping weight ?

Locked

Views: 1,124

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Jul 2007, 9:48 PM
#1
nigelt avatar

nigelt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Is there a default shipping weight ?

Hi Folks
Got a slight problem.
I've got a habit of adding new products and forgetting to put a weight for the product.
Consequently if an item weighs 1700grams customers are getting it shipped for the 100g postage rate (using rate table).

Is there a default somewhere I can enter, so that if the weight is zero then it will charge a money amount or will default to 500grams or similar.
I know its my problem and i should remember to put the weight in, but the old memory isnt what it was... if it ever was..I cant remember now haha.

Thanks in advance
Nige

4 Jul 2007, 11:57 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Is there a default shipping weight ?

/admin/includes/modules/product/collect_info.php
near the top of the file, you'll see a section like this: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, [B] 'products_weight' => '',[/B] 'products_date_added' => '', 'products_last_modified' => '',note the line that says:'products_weight' => '',inside the quotes on that line, enter whatever you would normally enter as a default value for weight. So, if you're entering 500 for 500 grams, make it say:'products_weight' => '[B]500[/B]',or if 500 grams is really 0.5, make it:```
'products_weight' => '[B]0.5[/B]',

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Jul 2007, 4:54 AM
#3
nigelt avatar

nigelt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Is there a default shipping weight ?

Thats superb. Thanks very much for that.