Zen Cart Logo
Forums / Managing Customers and Orders / Apply Low Order Fee for only the difference missing

Apply Low Order Fee for only the difference missing

Locked

Views: 1,132

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Sep 2010, 2:32 AM
#1
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Apply Low Order Fee for only the difference missing

hello all!!

I have looked through the forums for the answer to this question:

How can I have the ot_loworderfee to apply ONLY to the difference amount the customer is missing?

EXAMPLE

Purchased (1) APPLE $2.50
Store minimum: $100
Low Order Fee: 10%

Right now, it calculates for the Low Order Fee of $0.25 (10% of the $2.50) when I would like $9.75 (10% of $97.50)

How can I configure this setting?

Thank you very much

2 Sep 2010, 5:18 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Apply Low Order Fee for only the difference missing

You would need to customize the Order Total module for Low Order ot_loworderfee ...

You could change the code:

// calculate from flat fee or percentage
            if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') {
              $low_order_fee = ((MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER - $order->info['subtotal']) * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100));
            } else {
              $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
            }

NOTE: I did not test this with tax but it does produce the charge of $9.75 when set to 10% on orders set to less than 100.00 ...

3 Sep 2010, 3:54 AM
#3
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Apply Low Order Fee for only the difference missing

Hey Ajeh!

Thank you so much for your reply. I do not plan to tax the difference anyways so this might work out nicely for me. I will give this a test and see how it goes!

Thank you again.