Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Minimum shipping fee

Started by maureent on 10 Feb 2009, 11:47 PM · Views: 9,429

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

Post #1 by maureent

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

Post #2 by ajeh

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

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!

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

maureent

New Zenner

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

Post #3 by maureent

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

Post #4 by ajeh

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:

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!

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

maureent

New Zenner

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

Post #5 by maureent

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

Post #6 by 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);
}

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!

12 Feb 2009, 2:44 AM
#7
maureent avatar

maureent

New Zenner

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

Post #7 by maureent

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

Post #8 by ajeh

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

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!

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

time111

New Zenner

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

Post #9 by time111

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

Post #10 by ajeh

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)));

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!

13 Feb 2009, 6:36 PM
#11
time111 avatar

time111

New Zenner

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

Post #11 by time111

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

Post #12 by 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

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

maureent

New Zenner

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

Post #13 by maureent

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

Post #14 by ajeh

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?

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!

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

time111

New Zenner

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

Post #15 by time111

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

Post #16 by ajeh

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?

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!

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

webskipper

Totally Zenned

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

Post #17 by webskipper

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.

Cheers!
v2.2.1

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

ajeh

Oba-san

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

Post #18 by ajeh

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:

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!

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

mygalaxy

New Zenner

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

Post #19 by mygalaxy

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

Post #20 by ajeh

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:

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!