[ic] Residential/Commercial shipping

Steve Graham icdev at mrlock.com
Sun May 18 02:28:09 UTC 2008

At 05:34 PM 5/16/2008, you wrote:

> >I was reviewing Ship.pm
>I would still be interested in the previous questions, but basically
>What would be a good way to accomplish this?

Well, here is what I came up with, may not be the best code, but it works:

snip from shipmode.html

[tmp tmp_shipmodes][shipping possible=1][/tmp]

$t_mode = $Values->{mv_ship_residential};
if ($t_mode =~ m/1/) {
$t_mode =~ s/GNDCOM/GNDRES/;
$Scratch->{tmp_shipmodes} = $t_mode;
return "";

[seti ship_options][filter op="strip line2options" interpolate=1]

Notes to others:
In the substitution above you will have to change the values in the 
substitution based on what you call the shipping methods in 
shipping.asc, and the country table.
I am also considering adding USPS a 1st class mail shipping option 
for carts with weight less than 1/2 lb.... it can also be added in 
this manner depending on cart contents..

The reason I like Interchange:
I have yet to find a challenge that doesn't have multiple solutions, 
and Interchange has delivered excellent stability, and performance 
for our organization for almost 10 years.


More information about the interchange-users mailing list