Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Use Table rate to a point, then ignore

Use Table rate to a point, then ignore

Views: 1,039

Results 1 to 6 of 6
11 Feb 2013, 4:14 AM
#1
bulpup avatar

bulpup

New Zenner

Join Date:
Sep 2012
Posts:
15
Plugin Contributions:
0

Use Table rate to a point, then ignore

Hi all.
I have a good install going with 1.51 using the USPS shipping module and all has been well.

However I have small stickers for sale and they fit neatly in a first class envelope. The USPS module doesn't seem to like going below a certain rate no matter what I do so I have been using a table rate to give a price of .80 cents for 3 stickers, but if a customer orders a magnet with a sticker the gross wieght of the order is outside of the first class envelope range.

What happens is that when it goes over the weight for the minimal table weight the rate goes to zero. I had thought that this would make the USPS module take over the shipping but what happens is the the "Best Rate" is put at a table rate of $0.00

What I would like to happen is have the table rate apply for the rate I put in up to a certain weight, but then go away as an option above a certain weight.

Is this possible?

11 Feb 2013, 2:54 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Use Table rate to a point, then ignore

Could you give more details about what the weight is when the Table Rate table Shipping module should be disabled?

11 Feb 2013, 4:48 PM
#3
bulpup avatar

bulpup

New Zenner

Join Date:
Sep 2012
Posts:
15
Plugin Contributions:
0

Re: Use Table rate to a point, then ignore

I had
.18:.80,.25:1.50

Weight is lbs. these weights will be tweaked as I use it more but after .25 lbs the USPS module works fine.

11 Feb 2013, 4:56 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Use Table rate to a point, then ignore

So are you saying you want it to turn off on a weight > .25?

If so, you can customize the file:
/includes/modules/shipping/table.php

and in the function quote, add the code in RED:

[B]// bof: disable shipping module > .25
if ($shipping_weight > .25) {
  // skip shipping
} else {
  // show shipping[/B]
    $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) ) ));
[B]}
// eof: disable shipping module > .25[/B]
11 Feb 2013, 8:06 PM
#5
bulpup avatar

bulpup

New Zenner

Join Date:
Sep 2012
Posts:
15
Plugin Contributions:
0

Re: Use Table rate to a point, then ignore

Thats it! Thanks!

11 Feb 2013, 11:30 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Use Table rate to a point, then ignore

You are most welcome ... thanks for the update that this works for you ... :smile: