Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

COD fee as a percentage


Guest

Recommended Posts

Hi,

 

I'm trying to set up the cash on delivery fee module to calculate the fee as a percentage rather than a flat rate.

 

My PHP skills aren't quite up to the job though. I understand the flow of the ot_code_fee.php file - to simplify it ....

 

1) sorts out whether or not a fee should be charged

2) grabs fee from database

3) sets the ot variable for cod fee to the flat amount found in step 2.

 

What I need it to do is change step 2 above to retrieve total order amount so far.

Once I've git thta, I think the rest is straightforward.

 

Any kind person able to point me in the right direction?

 

Cheers,

 

Ali.

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.

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