[ic] Free Shipping and Shipping.asc file

Sheamus Nulty interchange-users@lists.akopia.com
Thu Jul 12 10:47:36 2001


----- Original Message -----
From: "Mike Heins" <mikeh@minivend.com>
To: <interchange-users@developer.akopia.com>
Sent: 12 July 2001 14:20
Subject: Re: [ic] Free Shipping and Shipping.asc file


> Quoting Sheamus Nulty (snulty@celticlinks.com):
> > ----- Original Message -----
> > From: "Mike Heins" <mikeh@minivend.com>
> > To: <interchange-users@developer.akopia.com>
> > Sent: 12 July 2001 12:30
> > Subject: Re: [ic] Free Shipping and Shipping.asc file
> >
> >
> > > Quoting Sheamus Nulty (snulty@celticlinks.com):
> > >  >
> > > > > Free! is supposed to show up. Try adding free=1 to your [shipping
> > > > label=...]
> > > > > ITL tag on the ord/checkout.html page.
> > > >
> > > >
> > > > If I just have the following entry in my shipping.asc
> > > >
> > > > usstandard    US Standard    [shipping-subtotal]    0    1    0.00
> > > > {free => 'Free!'}
> > > >
> > > > then the shipping method is given as US Standard()
> > > >
> > > > If I add free=1 as you indicated then I get US Standard(1)
> > > >
> > >
> > > I meant to add free=1 to this:
> > >
> > >       [shipping
> > > free=1
> > > label=1
> > > mode=|[data table=country key='[default country US]' col=shipmodes]|
> > >       ]
> >
> > That's what I did and it just puts a 1 inside the brackets i.e. US
> > Standard(1)
>
> Then it would make sense to try free="Free!", don't you think? 8-)

Thanks Mike. I hate when I miss the obvious. The last problem I have is that
because I have the {free =>'Free!} in the shipping.asc file, checkout stops
displaying the other methods correctly. So when I add a product to my basket
which isn't a free shipping item the shipping method should be US
Standard(USD$ 5.00) but instead we are back to US Standard(). Is there any
way to get this back as its very important to be able to show the shipping
price when I have multiple shipping options. If I remove the {free
=>'Free!'} from the file everything works again except for when I have a
Free Shipping item which gives me my initial problem of not displaying the
shipping method. This is the setup for my shipping.asc file for US Standard

usstandard US Standard [shipping-subtotal] 0 1 0.00  {free => 'Free!'}
usstandard US Standard [shipping-subtotal] 1 10.00 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=5.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=5.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=5.00 * 1.3;}return
$shipprice;[/perl]  {}

usstandard US Standard [shipping-subtotal] 10.00 20.00 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=9.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=9.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=9.00 * 1.3;}return
$shipprice;[/perl]  {}

usstandard US Standard [shipping-subtotal] 20.00 30.00 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=12.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=12.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=12.00 * 1.3;}return
$shipprice;[/perl]  {}

usstandard US Standard [shipping-subtotal] 30.00 200.00 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=16.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=16.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=16.00 * 1.3;}return
$shipprice;[/perl]  {}

usstandard US Standard [shipping-subtotal] 200.00 300.00 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=30.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=30.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=30.00 * 1.3;}return
$shipprice;[/perl]  {}

usstandard US Standard [shipping-subtotal] 300.00 9999999 f
[perl]if($Scratch->{mv_locale} eq en_UK){$shipprice=45.00 *
0.8;}elsif($Scratch->{mv_locale} eq en_US){$shipprice=45.00 *
1.0;}elsif($Scratch->{mv_locale} eq eur_EUR){$shipprice=45.00 * 1.3;}return
$shipprice;[/perl]  {}

Thanks

Sheamus