Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

disable one payment type if under X amount


lambro

Recommended Posts

Hi all,

I want to disable credit card payments for orders under $10.00 and replace it with a message saying sorry we cannot accept payment for orders with credit cards under $10.00. They are free to choose other methods of payment though.

 

I am a total PHP newbie, I was thinking of adding something along the lines of the following to the module cc.php

 

if ( $cart->show_total() > 10 ) {

print 'sorry credit card overs must be over $10.00' ;

} else {

 

 

Is this correct, and where would I put this?

 

Thanks in advance if you can help....................!

Link to comment
Share on other sites

  • 9 months later...
Hi all,

I want to disable credit card payments for orders under $10.00 and replace it with a message saying sorry we cannot accept payment for orders with credit cards under $10.00. They are free to choose other methods of payment though.

 

I am a total PHP newbie, I was thinking of adding something along the lines of the following to the module cc.php

 

if ( $cart->show_total() > 10 ) {

print 'sorry credit card overs must be over $10.00' ;

} else {

Is this correct, and where would I put this?

 

Thanks in advance if you can help....................!

 

 

Any one?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...