I'm new to PHP and need a liitle help with this code I'm working on.
Expand|Select|Wrap|Line Numbers
- $Shipping_Method = $METHOD;
- $dlr = 70.00;
- if ($Shipping_Method == 'Priority')
- {$Shipping_Method = 'Blue';}
- else if ($Shipping_Method == 'Express Overnight')
- {$Shipping_Method = 'Red Saver';}
- else if ($TOTAL >= $dlr && $Shipping_Method == 'Ground' )
- {$Shipping_Method = 'Priority1';}
- else
- {$Shipping_Method = 'Ground';}
I stuck on is this part....
Expand|Select|Wrap|Line Numbers
- else if ($TOTAL >= $dlr && $Shipping_Method == 'Ground' )
- {$Shipping_Method = 'Priority1';}
- else
- {$Shipping_Method = 'Ground';}
Every time I set the shipping method to ground and the total greater than 70 I get "Ground" where I should be getting "Priority"
What am I doing wrong?
Thanks in advance.