Forums / Built-in Shipping and Payment Modules / Making Flat Rate SMALL Box Available if only less than 2 pounds

Making Flat Rate SMALL Box Available if only less than 2 pounds

Views: 964

Results 1 to 5 of 5
18 Mar 2011, 3:50 PM
#1
hollymccaig avatar

hollymccaig

New Zenner

Join Date:
Mar 2011
Location:
St. Louis, MO
Posts:
7
Plugin Contributions:
0

Making Flat Rate SMALL Box Available if only less than 2 pounds

I only want a Small Flat Rate Box option to show up if their order is less than 2 lbs. For both US and International.

How would I go about doing this?

I'm running the most 1.3.9h
I currently have USPS set up with:

Domestic Shipping Methods
PRIORITY, FIRST CLASS, PARCEL

International Shipping Methods
Priority Mail International, Priority Mail Int Flat Rate Small Box, Priority Mail Int Flat Rate Med Box

Thanks for any help

18 Mar 2011, 4:22 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Making Flat Rate SMALL Box Available if only less than 2 pounds

You could customize the code for the Priority to change which container is used based on weight ...

Currently, the setting is for all orders:

          //PRIORITY MAIL OPTIONS
          if ($key == 'PRIORITY'){
            $this->container = ''; // Blank, Flate Rate Envelope, or Flat Rate Box // Sm Flat Rate Box, Md Flat Rate Box and Lg Flat Rate Box

          }

But you could setup a case statement to base which choice is used for the $this->container based on the $this->pounds to set 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!

18 Mar 2011, 4:25 PM
#3
hollymccaig avatar

hollymccaig

New Zenner

Join Date:
Mar 2011
Location:
St. Louis, MO
Posts:
7
Plugin Contributions:
0

Re: Making Flat Rate SMALL Box Available if only less than 2 pounds

I know nothing of PHP, so how would that code look when finished?

18 Mar 2011, 4:33 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Making Flat Rate SMALL Box Available if only less than 2 pounds

It would require quite a bit of customization ...

First, to get the right container size in the section I showed you , and then to customize the output on the same conditions for what shipping options are actually displayed ...

If you are not good at coding, you mayneed to look to hirer a coder to write this for you ...

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!

18 Mar 2011, 5:03 PM
#5
hollymccaig avatar

hollymccaig

New Zenner

Join Date:
Mar 2011
Location:
St. Louis, MO
Posts:
7
Plugin Contributions:
0

Re: Making Flat Rate SMALL Box Available if only less than 2 pounds

Yes, I have tried hiring someone at the freelance site recommended here. Unfortunately, the people that apply never meet the requirements I have set. I'll just see if I can figure it out on my own again.