Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to allow a paypal method over a certain amount


stellaplata

Recommended Posts

how to allow a paypal method over a certain amount.

Hi, thank you for your support in advance.
I'm looking for a way to activate paypal that only shows the option when they buy a certain amount. For example: if the customer buys less than $ 100, the paypal option does not appear or if he buys a larger amount at $ 300, the PayPal option appears.
I use version 2.3.4 I thank their support since I can not find the form.
regards
Michael

 

Link to comment
Share on other sites

Hi @stellaplata,

This is how I did it on my legacy site, which involves core changes.

In <<paypal_standard.php>>, find:

   function update_status() {
      global $order;

Add right under:

      if ( $order->info['subtotal'] < MODULE_PAYMENT_PAYPAL_STANDARD_ACCEPTED_LOWER_THRESHOLD ) {
        $this->enabled = false;
      }

Where MODULE_PAYMENT_PAYPAL_STANDARD_ACCEPTED_LOWER_THRESHOLD you could replace it with 100 so that PayPal payment option does not show for any orders < 100.

Please backup your file before making changes to it.

Cheers, Eddy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...