Forums / Built-in Shipping and Payment Modules / Default Products Shipping Weight

Default Products Shipping Weight

Views: 1,070

Results 1 to 4 of 4
28 Apr 2011, 10:30 PM
#1
martyng avatar

martyng

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Default Products Shipping Weight

I want to be able to set a default Products Shipping Weight of "1" on the New Products entry page.

We use the Per Unit shipping module and every item has a minimum shipping cost with some items having a cost of minimum shipping x 2. i.e. minimum shipping £26.00, special items £52.00.

Everything works fine with shipping set at £26 per unit, standard item weights = 1 and special items =2.

The only problem I have if that some of the store admin forget to add a shipping weight on new products so giving them zero shipping costs... :(

How do I modify the Perunitweight modules or product listing module to set and show a default Products Shipping weight of "1" but still being able to enter a different weight (including zero)?

I've tried all sorts of methods and bits of php but it's beyond my ability :cry: Any help appreciated...

29 Apr 2011, 1:42 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Default Products Shipping Weight

To default the products_weight to 1, you can edit the file:
/admin/includes/modules/product/collect_info.php

and customize the default settings:

    $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' => '1',
                       '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' => ''
                       );

NOTE: this would need to be done on each of the:
collect_info.php

files for each Product Type that you use ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Apr 2011, 8:20 PM
#3
martyng avatar

martyng

New Zenner

Join Date:
Apr 2008
Posts:
19
Plugin Contributions:
0

Re: Default Products Shipping Weight

Many thanks... That works perfectly :D

30 Apr 2011, 10:37 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Default Products Shipping Weight

Thanks for the update you were able to change the default on the products_weight ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!