Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Extra shipping for heavy items

Extra shipping for heavy items

Locked

Views: 955

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Jun 2010, 1:24 AM
#1
imagino avatar

imagino

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Extra shipping for heavy items

How can I add some shipping for very heavy items?

In most cases items do not use weight (and they do not have it set really), but in a few cases the items are too heavy (and I can set them weight) and shipping must grow by a predefined amount of money, suppose everytime the same amount.

I need to ADD those money to shipping customer chosen, not use another shipping module like PerWeightUnit.

Thank you.

8 Jun 2010, 2:51 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Extra shipping for heavy items

What shipping module(s) are you using now?

8 Jun 2010, 8:21 PM
#3
imagino avatar

imagino

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Extra shipping for heavy items

Ajeh:

What shipping module(s) are you using now?

Storepickup (not suitable for my question), and two similar remakes of Table shipping module - here I need to make some changes, as I suppose.

8 Jun 2010, 9:12 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Extra shipping for heavy items

What is your Table Rate table shipping module based on ... Item Count? Total? Weight?

Is there something to identify these "Heavy Products" ... master_categories_id ... products_id ... products_model ...

If not using products_weight any of the Products, can you use the products_weight for the additional amount to charge?

8 Jun 2010, 9:37 PM
#5
imagino avatar

imagino

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Extra shipping for heavy items

Ajeh:

What is your Table Rate table shipping module based on ... Item Count? Total? Weight?

Based on Total and this cannot be changed.

Ajeh:

Is there something to identify these "Heavy Products" ... master_categories_id ... products_id ... products_model ...

What about product weight? Say, everytime the product has weight other than zero, it is heavy.

Ajeh:

If not using products_weight any of the Products, can you use the products_weight for the additional amount to charge?

Sure.

And I use ZC v1.3.8a

8 Jun 2010, 10:37 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Extra shipping for heavy items

If that is the case, then you can customize the Table Rate shipping module to alter the code for the cost in:

    $this->quotes = array('id' => $this->code,
    'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
    'methods' => array(array('id' => $this->code,
    'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
    'cost' => $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));

by adding the $shipping_weight to that if the products_weight is the additional cost of the Product shipping ...

If you need to reduce the Total from these Products, you can expand on how this is managed ...

8 Jun 2010, 11:48 PM
#7
imagino avatar

imagino

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: Extra shipping for heavy items

Ajeh:

If that is the case, then you can customize the Table Rate shipping module to alter the code for the cost in:

$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
'cost' => $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
> 
> by adding the $shipping_weight to that if the products_weight is the additional cost of the Product shipping ...
> 
> If you need to reduce the Total from these Products, you can expand on how this is managed ...

Great! I added $shipping_weight and everything goes as I wanted.

I thought what add (weight) and where (shipping), but not where in the code is the right place.

Thank you for help a lot!
9 Jun 2010, 2:47 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Extra shipping for heavy items

Thanks for the update that this was able to work out for you ... :smile: