Hi I have some scripts for a specialized shopping cart. Now I am using a switch statement to determine what type of shipping they want, and then use the corresponding tables in the database after they select the type of shipping from a drop down list. The only problem is, if they change their shipping type, the price doesn't update! Also one more problem I am having is that I am using sessions to put the country they select at the beggining to determine what products they can choose from and so forth. However, if you happen to click the "keep shopping" link on the cart page, you will be displayed with the internation product list no matter what (because it is setup like "if ($country != "USA"){ foreign product list } else { us product list};". If anyone could help me figure out a better way to solve these problems I would be very appreciative.
Here is the cart script:
[edit]
you are setting their shiptype to priority for them with this line of code
$_GET['shiptype'] = "Priority";
that's why it doesn't change. It is always priority when it goes into the switch.
Also watch the super long lines of code on the boards.