Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to block a payment module?


Stuart

Recommended Posts

Hi all

 

I am trying to get paypal ipn to show as a payment option only if the cart +shipping value >=5 . So far I have edited the includes>modules>payment>paypalipn.php to have the following:

 

if ($cart->get_total() >= '5') {

?$this->enabled = true;

} else {

?$this->enabled = false;

}

 

before the //class methods

 

But what I get back is

 

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /Users/stuart/Sites/temporalmusic_com/catalog/includes/modules/payment/paypalipn.php on line 43

 

Fatal error: Cannot instantiate non-existent class: paypalipn in /Users/stuart/Sites/temporalmusic_com/catalog/includes/classes/payment.php on line 62

 

Any suggestions?

 

Thanks

Stuart

Link to comment
Share on other sites

  • 3 weeks later...

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