### New Scripts Problem!

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

Hi Gang

I pose this to all you guru's using the new script, a few of my clients need shipping by price, and i have tried cutting and pasting the code from the old script into the new with no luck!

This is what i did!

########## # Shipping ########## # 0 = No shipping # 1 = Shipping by number of items # 2 = Non-variable shipping # 3 = Shipping by weight Ed's way # 4 = Shipping by price \$shipping = "4";

# For shipping by number of items: # \$minship_1 = minimum shipping amount. \$shiprate_1 = rate per pound. if (\$shipping eq '1') { # Minimum Shipping Amount \$minship_1 = "5.00"; # Amount in 00.00 for each additional item \$shiprate_1 = "1.00"; } # For non-variable shipping if (\$shipping eq '2') { \$shipamt = "7.50"; } # For shipping by weight: # \$minship = minimum shipping amount. \$shiprate = rate per pound. if (\$shipping eq '3') { \$minship = "5.25"; \$shiprate = ".85"; } # For shipping by price: # (price,shipping,price,shipping,etc) if (\$shipping eq '4') { %shipping = ('1.00','4.95','50.00','9.95','100.00','19.95','150.00','29.95','200.00','39.95','250.00','44.95','300.00','49.95','350.00','54.95','400.00','59.95','450.00','64.95','500.00','69.95','550.00','74.95','600.00','79.95','650.00','84.95','700.00','89.95','750.00','94.95'); }

Any idea what i did wrong or what else i may need to do!

I need these new scripts running quickly!

You guys are the best!

CJ

-- CJ (reptile@reptilemall.com), April 08, 2000