Re: payment type fee module
Somewhere there is missing code and it is not testing as enabled when the checkout_payment page is run ...
This could be a typo or a test blocking the:
$this->enabled
from evaluating as true when the module is run ...
Re: payment type fee module
Quote:
Originally Posted by
Ajeh
Somewhere there is missing code and it is not testing as enabled when the checkout_payment page is run ...
This could be a typo or a test blocking the:
$this->enabled
from evaluating as true when the module is run ...
Hi Linda,
I checked the code. No typo.
Just that I don't have zone to select since I m not in USA. Does it matter?
This line is ok
$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
1 Attachment(s)
Re: payment type fee module
Quote:
Originally Posted by
CJJUNE
Hi Linda,
I checked the code. No typo.
Just that I don't have zone to select since I m not in USA. Does it matter?
This line is ok
$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
I just attach this file. Just in case someone might need to help to check the code.
Thank you.
Re: payment type fee module
Looks like this is setting it to 0 or false vs true ... and false means OFF or HIDE
PHP Code:
//$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
$this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS, 'True') == 0);
Re: payment type fee module
Quote:
Originally Posted by
Ajeh
Looks like this is setting it to 0 or false vs true ... and false means OFF or HIDE
PHP Code:
//$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
$this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS, 'True') == 0);
Hi hello hello
I know this problem is rather simple to the PHP coders :frusty:. But not foer me. Yes Ajeh you are right, the code below means forever true, even if I set it False in Admin, it will still be true. Another dead end:-
$this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS, 'True') == 1)
If I use :- $this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false), this code will be forever False even if I set it to True.
So anyone, please help to get the right code.:frusty: Thank you
Re: payment type fee module
:yuck: I still cant get this to work.
Anyone with a golden touch to solve this thing?:blush:
Re: payment type fee module
How about zipping up the two files for this and attaching them here :smile:
2 Attachment(s)
Re: payment type fee module
Quote:
Originally Posted by
Ajeh
How about zipping up the two files for this and attaching them here :smile:
Sure no problem.
1 from includes/module/payment/ and 1 from includes/languages/English/modules/payment/TTransfer.zip
Re: payment type fee module
Don't shoot yourself ... this is easy to fix ...
You know how the moneyorder.php file has either:
MONEYORDER
moneyorder
You should have:
TTRANSFER
ttransfer
But you have mixed case ... :eek:
This is mixing up the code and causing issue ...
I just redid moneyorder with changing all:
moneyorder to ttransfer
MONEYORDER to TTRANSFER
In both the code and the language files and voila! :cool:
Now it is your turn to delete the old ones you made off the server and redo them ... :smartalec:
Re: payment type fee module
Quote:
Originally Posted by
Ajeh
Don't shoot yourself ... this is easy to fix ...
You know how the moneyorder.php file has either:
MONEYORDER
moneyorder
You should have:
TTRANSFER
ttransfer
But you have mixed case ... :eek:
This is mixing up the code and causing issue ...
I just redid moneyorder with changing all:
moneyorder to ttransfer
MONEYORDER to TTRANSFER
In both the code and the language files and voila! :cool:
Now it is your turn to delete the old ones you made off the server and redo them ... :smartalec:
Are you saying that they are case sensitive?