Hi,
I want to disable/enable worldpay module by price.
My php is not very good, can someone explain what $this->enabled = does in worldpay.php:
$this->enabled = ((MODULE_PAYMENT_WORLDPAY_DC_STATUS == 'True') ? true : false);
I believe it is key to my solution and have seen others use it. When I move it to a different part of the file I get this error:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in D:\apachefriends\xampp\htdocs\catalog\includes\mod ules\payment\worldpay_DC.php on line 50
Also when I do an if statement to enable or disable $this worldpay responds with errors saying data is missing.




LinkBack URL
About LinkBacks






Bookmarks