Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

loworderfee.php


MikeMike

Recommended Posts

I have installed the low order fee module but I need to let the customer order my printed catalog without the low order fee applies.

 

I changed the code in loworderfee.php to:

 

if ( ( ($order->info['total'] - $order->info['shipping_cost']) !== 3.75) && ( ($order->info['total'] - $order->info['shipping_cost']) <= MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) )   {
         $tax = tep_get_tax_rate(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS);

 

This works great and will not apply the low order fee if the order total is $3.75 (the catalog price). However, if anyone within my state order a catalog, the total includes sales tax and the total is now 3.97 and the low order fee will be added.

 

How can I change or add to the code above, so I can get around this?

 

Regards

Mike

Link to comment
Share on other sites

One method would be to use a minus option in the product attribute, however this may be to crude a method for you

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I was thinking something like

if ( ( ($order->info['total'] - $order->info['shipping_cost'] - $order-info['salestaxstuffhere']) !== 3.75) && ( ($order .........

 

But I am not sure what the salestaxxstuffhere should be replaced with and if it would work at all

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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