Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Type Surcharge CONTRIBUTION error??


danicasati

Recommended Posts

Hi.

I've installed PAYMENT TYPE SURCHARGE, I need to display a percentage of total, that user must pay to start shipping process.

 

I fix 30% of total, but the module doesn't calculate correct percentage .

For example:

 

ONE PRODUCT IN MY CART COSTS= 374,99 ?

VAT (16%)= 60,00 ?

TOTAL= 434,99 ?

 

The module says that the percentage is: 130,85 ?

 

IT'S WRONG!!! Correct 30% percentage is: 130,50 ?

 

How can I fix this error? Please, help me!

Link to comment
Share on other sites

Hi.

I've installed PAYMENT TYPE SURCHARGE, I need to display a percentage of total, that user must pay to start shipping process.

 

I fix 30% of total, but the module doesn't calculate correct percentage .

For example:

 

ONE PRODUCT IN MY CART COSTS= 374,99 ?

VAT (16%)= 60,00 ?

TOTAL= 434,99 ?

 

The module says that the percentage is: 130,85 ?

 

IT'S WRONG!!! Correct 30% percentage is: 130,50 ?

 

How can I fix this error? Please, help me!

 

By default, it's set to the %age + 0.35.

 

Edit includes/modules/order_total/ot_surcharge.php:

    }
   $od_amount = round($amount*10)/10*$od_pc/100;//percentage plus base fee  + .35
   $od_amount = $od_amount + $tod_amount;
   }
   }

Link to comment
Share on other sites

  • 3 months later...

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