mdo82:
Does anyone have any idea how I can do this?
I believe that you have us all confused with what you are now trying to achieve and/or where you are headed.
You've told us that you wish to disable the COD module for one customer only, and then you tell us that you've been changing the wrong file and that you are now editing the moneyorder.php file because the cod.php file was a 'mistake'.
And finally you tell us the "the" option isn't showing at all, without any clue as to whether you are still referring to the COD option of the moneyorder option.
The cod.php file controls the COD options.
The moneyorder.php file controls the Money Order options.
Either one of these files will not affect the options provided by the other (which is what you are implying is happening).
What the "!" does is "reverse" the results of any given test or comparison, So
if (!strstr($_SESSION['customers_id'],'3739')){
Do Something
}
Is stating: if customerID isn't '3739' then run the code "Do Something"
and
if (strstr($_SESSION['customers_id'],'3739')){
Do Something
}
Is stating: If customerID iS '3739' then run the code "Do Something"
This means that you'll need to either set the $this->enabled to either 'true' or 'false' (in the "do something" area, depending on your needs).
The code that reads like
$this->enabled = ((MODULE_PAYMENT_XXXXX_STATUS == 'false') ? true : false);
is stating: If the STATUS is set to "false" then set it to "true", otherwise set it to "false".
If you change this to
$this->enabled = ((MODULE_PAYMENT_XXXXX_STATUS == 'false') ? false : true);
is stating: If the STATUS is set to "false" then leave it "false", otherwise set it to "true".
If you change this to
$this->enabled = ((MODULE_PAYMENT_XXXXX_STATUS == 'true') ? false : true);
is stating: If the STATUS is set to "true" then set it to "false", otherwise set it to "true".
and finally:
$this->enabled = ((MODULE_PAYMENT_XXXXX_STATUS == 'true') ? true : false);
is stating: If the STATUS is set to "true" then leave it as "true", otherwise set it to "false".
I realise that this can all be a little confusing if you aren't familiar with the syntax, which is why I suggested that in your case, simply setting
$this->enabled = 'true' or $this->enabled = 'false' (depending on the results of your customerID check) would perhaps be a little easier to understand.
Cheers
RodG