Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Low order fee for only one payment type


gaaro

Recommended Posts

Hello

 

Does anyone know how i can make people pay extra if they order below 100 euro, but ONLY if they choose a certain payment-type.

 

It probaly doens't make much sence to do this for you guys, but for my boss it's a real big issue... so does anyone have a clue on how to accomplish this?

 

 

Harro

Example

- Payment=Cash total = 90 = total wil be 95

- Payament=Credit Card total = 90 total stays 90

"If we don't succeed, we run the risk of failure." George W. Bush, Jr

Link to comment
Share on other sites

You could try this,

 

Oscommerce will already add a low order fee, but for all payment types. To make it only for 1 payment type you will have to hack

/includes/modules/order_total/ot_loworderfee.php

 

find

 

    function process() {

     global $order, $currencies;

 

and change to

 

    function process() {

     global $order, $currencies, $payment;

 

now change

 

        if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) <= MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {

 

to

 

if ($payment=='cod') {

       if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) <= MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {

 

and

 

    }



   function check() {

 

to

 

    }

}



   function check() {

 

note here i've used cod so the loworder fee will only be added if the customer uses cod method.

 

You will need to change that depending on the payment method you want to charge for.

Trust me, I'm an Accountant.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...