Forums / Built-in Shipping and Payment Modules / Flat rate tied to item, UPS for the rest

Flat rate tied to item, UPS for the rest

Locked

Started by hazmat on 24 Mar 2007, 8:09 AM · Views: 1,918

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Mar 2007, 8:09 AM
#1
hazmat avatar

hazmat

New Zenner

Join Date:
Mar 2007
Posts:
17
Plugin Contributions:
0

Flat rate tied to item, UPS for the rest

Hi...

I'm looking to ship the majority of my products via UPS. No problem there, I have the UPS module setup and working correctly. The problem is I have some items I need to ship via freight which I setup using flat rate shipping. The problem is I'd like to only show that flat rate option on the items I need to ship bt freight. Can flat rate be tied to certain items? Or maybe by going over X amount of weight?

Thanks in advance..

24 Mar 2007, 1:58 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate tied to item, UPS for the rest

You could customize the code for this ... but you need to consider what to do when 10 items are usually sent UPS and 1 item is for the special shipping ... how do you want to manage that?

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 2007, 5:39 PM
#3
hazmat avatar

hazmat

New Zenner

Join Date:
Mar 2007
Posts:
17
Plugin Contributions:
0

Re: Flat rate tied to item, UPS for the rest

The flat rate is setup for freight shipping so if one item qualifies, the 10 "regular" items could all be loaded on the pallet and shipped together..

How would I customize the code? is there a mod for this or maybe a walk through?

Thanks!

25 Mar 2007, 4:27 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate tied to item, UPS for the rest

There isn't a mod for this ...

The idea is there has to be a flag or some type of indicator that can be tested for to know when the cart has any of these freight products in it ...

If 1 or more is present, then only the flat rate shows ... otherwise, use the standard UPS ...

Is there something that presently distinguishes these Products from all the others?

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!

25 Mar 2007, 7:18 AM
#5
hazmat avatar

hazmat

New Zenner

Join Date:
Mar 2007
Posts:
17
Plugin Contributions:
0

Re: Flat rate tied to item, UPS for the rest

Weight could be one thing. Or maybe one whole catagory like "tires".. I wish there was a way to create product groups kind of like the zone definitions..

Thanks for the reply!

25 Mar 2007, 2:01 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate tied to item, UPS for the rest

You could add a new field ...

Or use a large weight such as 5000 ... something where no combo of regular products can reach it ... so when the weight is >= 5000 or whatever amount you use ... it can be the trigger for which Shipping Module to use ...

Advantage of the 5000 products_weight is that you don't have to code in a new field you mearly have to test for it in the shipping modules to determin which is turned on/off ...

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!

25 Mar 2007, 3:53 PM
#7
hazmat avatar

hazmat

New Zenner

Join Date:
Mar 2007
Posts:
17
Plugin Contributions:
0

Re: Flat rate tied to item, UPS for the rest

That's great and all, but I haven't the slightest clue how I'd go about coding that.. Would you happen to have any kind of examples to work off of?

Thanks again!

25 Mar 2007, 4:16 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Flat rate tied to item, UPS for the rest

You can look at how the Free Shipping is managed via the function zen_get_shipping_enabled to test when and when not to allow a shipping module to display based on criteria for Free Shipping orders ...

For example, in the shipping module for Flat Rate flat you will see:
/includes/modules/shipping/flat.php

      // disable only when entire cart is free shipping
      if (zen_get_shipping_enabled($this->code)) {
        $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
      }

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!

26 Mar 2007, 6:59 AM
#9
hazmat avatar

hazmat

New Zenner

Join Date:
Mar 2007
Posts:
17
Plugin Contributions:
0

Re: Flat rate tied to item, UPS for the rest

That's a good place to start.. Thanks!