[ic] Fixed Pricing

Jim Balcom interchange-users@interchange.redhat.com
Wed Aug 29 19:19:01 2001


On Wed, 29 Aug 2001, Leon Harris wrote:

LH>>Jim, I thought this would just return the value of the variable SHIP_FLAT_RATE
LH>>without having to lookup any further table. I looked at your email, from Jun
LH>>28, but it seems to be trying to do a lot more than what I want to - I just
LH>>want one shipping price.

I can understand that. But there are other steps that I detailed there
beyond changing shipping.asc

LH>>Should there be a shipping.gdbm file in the products directory? - I am missing
LH>>one - I only have a shipping.asc file ?

No, you don't need a shipping.gdbm file (or, at least I don't have one)
But, I suspect you need a gdbm file for your flat rate file.

Or, perhaps this works and is easier::::

(This is an excerpt from my shipping.asc:

uspsexp Express Mail    weight  0       0       e Nothing to ship!
uspsexp Express Mail    weight  0       0.5     12.45           {}
uspsexp Express Mail    weight  0.5     2       16.25           {}
uspsexp Express Mail    weight  2       3       19.15           {}
uspsexp Express Mail    weight  3       4       22.05           {}
................ etc.

I suspect that if I change the 0.5 in this second line to something
like 1000 that 12.45 would be applied to everything.

So: I am suggesting that in shipping.asc that you put:

flatrate Flat Rate    weight  0       0       e Nothing to ship!
flatrate Flat Rate    weight  0       1000     12.45           {}

(Make sure that tabs separate those fields!)

In country.txt put something like:

TZ      TZ      flatrate   Tanzania
UA      UA      flatrate   Ukraine

I recommend going into the admin interface and click on the 'apply
changes' option, and also restart the IC server.


-= Jim =-

----------------------------------------------------------------
Jim's Linux-Operated Underground Bomb Shelter

Tagline for Wednesday, August 29, 2001 at 19:00 PM:
Catalyze: To lie while looking cute.

----------------------------------------------------------------
This Linux System has been up 439 hours  

My web page: http://www.idk-enterprises.com
----------------------------------------------------------------