Forums / Addon Shipping Modules / Residential vs. Commercial

Residential vs. Commercial

Views: 2,066

Results 1 to 2 of 2
9 May 2012, 10:35 PM
#1
t_harrison avatar

t_harrison

New Zenner

Join Date:
Aug 2005
Posts:
16
Plugin Contributions:
0

Residential vs. Commercial

I have a client that would like to have a radio button selection to have a customer choose "Residential" or "Commercial" for the shipping address as the shipping rates differ based on that.

Does anyone have a solution for this?

Tom

10 May 2012, 1:07 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Residential vs. Commercial

You can "LABEL" a shipping module's DEFINES to literally any text you want, so yes... having a "Residential" and a "Commercial" option is indeed possible.

THEN, you have to determine WHAT SHIPPING MODULE(S) you will use to do the necessary CALCULATIONS.

All shipping modules have a LANGUAGE FILE and a MODULE FILE.

The LANGUAGE FILE will contain the DEFINES, which you can edit to show your desired LABELS.

Now, you will probably want TWO IDENTICAL MODULES, but where EACH MODULE calculates the appropriate rate, based on whether the customer chooses a RESIDENTIAL ADDRESS of a COMMERCIAL ADDRESS.

So you will need to create a CLONE (or CLONES) of the module you want to use.

Many shipping modules can be cloned, and a couple of years ago I described the procedure:

http://www.zen-cart.com/showthread.php?115687

I suggest you read MOST of that thread...