Multiple shipping

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

Hi, I am from Brasil, and I am looking for script to my store, I found 5, S-Mart is one of them... It works great, but for my store I have to modify some thing in the script for the Shipping. Thats is because I have 2 diffrente companys that charges 2 different price, for different weight for each state (that is 4 tables), each table starts at 6000 grams and fineshes at 1000grams.... How can I di That, I tryd to change that line that says : $shipping =3 ;if ($shipping eq '3') {%shipping='6000','23,00', etc..};

I added to $FORM{''}, so the user can choose the company and the State that the product is going, and the script junps to the right table....

Is that right? Should it work? I NEED HELP!!!!!!!!!!!!!!!!!!!!!

PLESE;;;;;;;;

I changed to:

if (($shipping eq '3')&&($FORM{'tipo'} eq 'Sedex')&&($FORM{'Local'} eq 'CC')&&($FORM{'Estado'} eq 'SP')) {%shipping = ('6000','7,75','5000','7,10','4000','6,45','3000','5,80','2000','5,15','1000','4,50');} ############### 1st table ################## if (($shipping eq '3')&&($FORM{'tipo'} eq 'Sedex')&&($FORM{'Local'} eq 'CI')&&($FORM{'Estado'} eq 'SP')) {%shipping = ('6000','7,75','5000','7,10','4000','6,45','3000','5,80','2000','5,15','1000','4,50');} ################ 2nd table ################### if (($shipping eq '3')&&($FORM{'tipo'} eq 'Encomenda')&&($FORM{'Local'} eq 'CC')&&($FORM{'Estado'} eq 'SP')) {%shipping = ('6000','','5000','','4000','','3000','','2000','','1000','');} ################# 3rd table ############################# if (($shipping eq '3')&&($FORM{'tipo'} eq 'Encomenda')&&($FORM{'Local'} eq 'CI')&&($FORM{'Estado'} eq 'SP')) {%shipping = ('6000','','5000','','4000','','3000','','2000','','1000','');} ################ 4th table ################################

-- Alexandre (b_flys@yahoo.com), August 25, 1999


Moderation questions? read the FAQ