Can someone, please assist me one more time?
I have a page called checkout.asp as part of an ecommerce site we are building.
The way we have it written so far, it calculates tax and adds the tax to customer's total purchase based on a 5% tax.
Right now, we are trying to change that; we don't want to charge taxes any longer, however, we want to add shipping and handling charges.
The approach we want to take is to calculate the s & h charge based on weight ranges, zip code and state code.
So, on our db, we have 2 tables: shipping table and products table.
On shipping table,we have 5 fields: shippingId (autoNumber),fromWeight, toWeight, zip, statecode, and shippingCharges.
Example would be:
FromWeight toWeight Zip stateCode S&H charges
1lbs 5lbs 30303 GA $20.00
Then on the products table is another field called shippingWeight.
Let's assume that that shippingWeight is 4ilbs.
We would then query shipping table to compare the shippingweight with any weight range on shipping table and determine what range the shippingweight falls, and the zip code and grab the shipping charge.
Does anyone know how to implement me?
I have a page called checkout.asp as part of an ecommerce site we are building.
The way we have it written so far, it calculates tax and adds the tax to customer's total purchase based on a 5% tax.
Right now, we are trying to change that; we don't want to charge taxes any longer, however, we want to add shipping and handling charges.
The approach we want to take is to calculate the s & h charge based on weight ranges, zip code and state code.
So, on our db, we have 2 tables: shipping table and products table.
On shipping table,we have 5 fields: shippingId (autoNumber),fromWeight, toWeight, zip, statecode, and shippingCharges.
Example would be:
FromWeight toWeight Zip stateCode S&H charges
1lbs 5lbs 30303 GA $20.00
Then on the products table is another field called shippingWeight.
Let's assume that that shippingWeight is 4ilbs.
We would then query shipping table to compare the shippingweight with any weight range on shipping table and determine what range the shippingweight falls, and the zip code and grab the shipping charge.
Does anyone know how to implement me?