COD (Cash on delivery) is it possible

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Is it possible to use COD (Cash on delivery) in S-Mart?

Best regards

Johan Hjelmberg

-- Johan Hjelmberg (j.hjelmberg@bonsa.se), August 12, 1999

Answers

Hi,

Yes very easy. In your "smart.cfg" file find "Multi Shipping".

## Multi Shipping $multiship = 1;

if ($multiship eq 1) { $shipdb = "shipping.db"; }

Set to 1. $multship = 1; to use multiship.

Then find "Shipping Type".

# Shipping Type # 0 = None (other) # 1 = FedEx # 2 = UPS # 3 = Airborne Express $shiptype = 0;

Set to 0. $shiptype = 0;

Then in your "shipping.db" file add these lines.

0999|Standard|0| 1003|C.O.D.|5.00|

The "5.00" is the $5.00 C.O.D. charge you can change that to what you will charge.

If you are not using the other companies in "multiship" delete these lines from the "shipping.db".

1000|Federal Express|5.00| 1001|UPS Next Day|8.00| 1002|UPS Two Day|4.00|

Let me know how you did.

Jim

-- James L. Farmer (jim@team-blankets.com), August 13, 1999.


Moderation questions? read the FAQ