Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

worldpay module problem


Recommended Posts

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\modules\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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...