Zen Cart Logo

Minimum shipping fee

Views: 9,363

Results 1 to 20 of 60
10 Feb 2009, 11:47 PM
#1
maureent avatar

maureent

New Zenner

Join Date:
Nov 2008
Posts:
60
Plugin Contributions:
0

Minimum shipping fee

The store I'm working on uses the UPS and USPS shipping modules. The problem is that we need to set it up with a minimum shipping fee of $7.95. For example, if the quote for USPS Priority Mail comes back as $4.95, a $3.00 charge will automatically be added.

I was hoping that there would be an add-on that would accomplish this, but I appear to be out of luck there. I searched the forum for a solution, but struck out here as well.

Does anyone have a suggestion on how this could be accomplished?

The store uses ZC version 1.3.8.

10 Feb 2009, 11:51 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

You can add a handling fee for 3.50 or ... capture the costs and adjust as needed ...

11 Feb 2009, 3:50 AM
#3
maureent avatar

maureent

New Zenner

Join Date:
Nov 2008
Posts:
60
Plugin Contributions:
0

Re: Minimum shipping fee

Adding a handling fee would be applied to all orders, including those with shipping that's already over $7.95. That's not what we want. I'm not sure what you mean by capturing the cost.

11 Feb 2009, 4:00 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

For example, in the UPS shipping module you will see:

        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

Check the value of $cost and when too little, add more ... :smile:

11 Feb 2009, 8:04 PM
#5
maureent avatar

maureent

New Zenner

Join Date:
Nov 2008
Posts:
60
Plugin Contributions:
0

Re: Minimum shipping fee

I already figured that there would have to be some kind of "if" statement in the code saying that if the shipping was less than $7.95 then make it $7.95, but I don't know how to do that. I am only just beginning to figure out how PHP works.

11 Feb 2009, 8:36 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

Customize the code from:

        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

to now force the amount ...

if ($cost < 7.95) {
        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => (7.95 + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
} else {
        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
}
12 Feb 2009, 2:44 AM
#7
maureent avatar

maureent

New Zenner

Join Date:
Nov 2008
Posts:
60
Plugin Contributions:
0

Re: Minimum shipping fee

Thanks. That did the trick, although, after getting the client on the phone, they decided to go a different route with the shipping, so I didn't end up needing this after all. Isn't that the way it is sometimes? :P But thanks for the help anyway.

12 Feb 2009, 4:41 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

Thanks for the update that this would have worked for you in another life ... alas, that is the way things go with clients ... :lamo:

13 Feb 2009, 5:21 PM
#9
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Minimum shipping fee

Hi Ajeh,

I want to know how this can be implemented in Zones shipping module, please provide the code modification.

I also want to know is it possible that a handling fee ads if product from particular category or particular products adds up to the cart.

For example one of my cart deal in pets and it have pets accessories as well as live pets. Pet accessories can be shipped with standard shipping charges but live pets need special packing so will cost extra.

Any Idea how can be implemented.

Thanking you in advance.

~ Time

13 Feb 2009, 5:59 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

Basically you are altering similar code for zones.php ...

      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => $shipping_method,
                                                     'cost' => $shipping_cost)));
13 Feb 2009, 6:36 PM
#11
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Minimum shipping fee

Can you modify and say how it can be done. Like suppose we give 5lbs as box max weight then is it possible to workout minimum fee on per box basis.

And I would like to know is my 2nd question possible to do, if so then how.

~ Time

13 Feb 2009, 11:54 PM
#12
colin4255 avatar

colin4255

New Zenner

Join Date:
Feb 2009
Location:
england
Posts:
8
Plugin Contributions:
0

Re: Minimum shipping fee

I'm not sure if I'm asking the question in the right part of the forum, but here goes anyway. This is my first time using Zen Cart, I am also new to PHP. The shop I am working on sells bottled beer online. We only sell in multioples of 12 bottles (ie delivery of full cases only) though they can be a mixture of 12 different products, or 12 of the same. This will be made clear throughout the site.

We have 3 needs for shipping:

  1. Free delivery within two counties in the UK (about a 60-80 miles radius of our base) for one case or more.
  2. Courier delivery within the rest of Engalnd at £6.50 per case of 12
  3. Courier delivery to Scotland and Wales and Ireland at a cost of £9 per case of 12.

I know I can set a delivery price of £0.50 per item and have it add up to £6 per case of 12 for delivery, but how do I make it so the customer tells us at checkout which of the three options they have chosen and how do I get the shipping costs calculated? and how can I set those options up??

I am afraid I am struggling to under stand how the shipping module works

Any help greatly appreciated.

Thanks

14 Feb 2009, 12:08 AM
#13
maureent avatar

maureent

New Zenner

Join Date:
Nov 2008
Posts:
60
Plugin Contributions:
0

Re: Minimum shipping fee

colin4255:

I'm not sure if I'm asking the question in the right part of the forum, but here goes anyway. This is my first time using Zen Cart, I am also new to PHP. The shop I am working on sells bottled beer online. We only sell in multioples of 12 bottles (ie delivery of full cases only) though they can be a mixture of 12 different products, or 12 of the same. This will be made clear throughout the site.

We have 3 needs for shipping:

  1. Free delivery within two counties in the UK (about a 60-80 miles radius of our base) for one case or more.
  2. Courier delivery within the rest of Engalnd at £6.50 per case of 12
  3. Courier delivery to Scotland and Wales and Ireland at a cost of £9 per case of 12.

I know I can set a delivery price of £0.50 per item and have it add up to £6 per case of 12 for delivery, but how do I make it so the customer tells us at checkout which of the three options they have chosen and how do I get the shipping costs calculated? and how can I set those options up??

I am afraid I am struggling to under stand how the shipping module works

Any help greatly appreciated.

Thanks

I'd recommend that you start a new thread with this question since it doesn't have anything to do with setting up a minimum shipping fee. You'd put it in the Shipping and Payment Modules Forum, the same forum that this topic is in.

Regarding your question about how the customer tells you which shipping method they want, all the available shipping options will be displayed on the first checkout page. They mark which one they want.

14 Feb 2009, 4:26 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

For example one of my cart deal in pets and it have pets accessories as well as live pets. Pet accessories can be shipped with standard shipping charges but live pets need special packing so will cost extra.

What is "standard" shipping and what does "Live Pet" shipping cost?

15 Feb 2009, 8:53 AM
#15
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Minimum shipping fee

Hi Ajeh,

Normal shipping cost on my site is 1 Euro and live pets shipping is 2.5 Euro per box of upto 24 lbs.

~ Time

15 Feb 2009, 3:31 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

I order the following, how much would you be charging for shipping:

Order 1
1 pet toy

Order 2
1 pet at 4lbs

Order 3
3 pet toys

Order 4
3 pets at 4lbs each

Order 5
1 pet at 25lbs

Also, is there something that "marks" or distinguishes Pets from Accessories in the products table that can be testing for?

17 Mar 2009, 4:48 PM
#17
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: Minimum shipping fee

Ajeh:

Customize the code from:

    $methods[] = array('id' => $type,
                       'title' => $this->types[$type],
                       'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
> 
> to now force the amount ...
> ```
if ($cost < 7.95) {
        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => (7.95 + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
} else {
        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
}

Very Nice. How can this be done with USPS? It is a pain in the back to ship First Class. Their website is unreliable and I just want to ship Fedex but, some things are easily sent in a small envelope. I'd like a minimum USPS amount of $4.00.

Thanks.

17 Mar 2009, 5:22 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

umm ... well ... I'd search for the word:
cost

in the file and find:

          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);

Then do the same things where you test the value of $cost and if < 4.00 you make it 4.00 ...

The difference is the code where the constants used UPS in what I showed and you are looking for constants that use USPS ... :smile:

24 Mar 2009, 10:33 PM
#19
mygalaxy avatar

mygalaxy

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

Re: Minimum shipping fee

Does that alteration in shipping fees show on the checkout page for the customer?

For example: the user gets the shipping rate based on zip code through the USPS module, then I alter the code to add a standard handling fee to all orders. Essentially, the user would see the rate change from USPS quote to final checkout without knowing what happened inbetween to increase the total price. Does that make sense? I've never used the USPS module before, so is there a separate area for adding handling fees?

25 Mar 2009, 2:51 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Minimum shipping fee

If you want a universal Handling Charge on the shipping module, go to the Modules ... Shipping ... and edit the module and add your Handling Fee and it will be applied to all methods ... :smile: