This is a discussion on IF statement confusions..... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; OK, I'm trying to get an order totals module to be activated/deactivated when certain conditions are met. Here's what I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| OK, I'm trying to get an order totals module to be activated/deactivated when certain conditions are met. Here's what I have: Quote:
As it is, nothing happens - the module is deactivated no matter what card-type is used. What am I doing wrong?? Is the IF and ELSE statements all wrong? Any help would be very much appreciated - I've spent ages trying to sort this one out and it's got very, very frustrating!! Cheers |
|
#2
| |||
| |||
| Try this $surch == 10; if ($cc->cc_card_type != JCB) $surch = 1; |
|
#3
| |||
| |||
| Thanks Pete Tried that, but results the same - it removes the module no matter what! Any other thoughts?? Cheers |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with greeting statement? | greg_pdq | osCMax v1.7 Discussion | 1 | 09-01-2004 09:50 AM |