Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] - Payment Type Fee - for Snapshots and MS1


Guest

Recommended Posts

  • 2 weeks later...

Small bug in the ot_surcharge.php stored in the languages area -

<?php

/*

 $Id: ot_surcharge.php,v 1.0 2003/6/19 23:09:49 wib Exp $

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com

 Copyright © 2002 osCommerce

 Released under the GNU General Public License

*/

 

 define('MODULE_PAYMENT_TITLE', 'Payment Type Surcharge);

 define('MODULE_PAYMENT_DESCRIPTION', 'Payment Type Fee');

 define('SHIPPING_NOT_INCLUDED', ' [shipping not included]');

 define('TAX_NOT_INCLUDED', ' [Tax not included]');

?>

You will get a "unexpected T_STRING" error on line 11, easy to sort out add the closing ' after Payment Type Surcharge! Just thought you might need to know for the next release.

 

Thanks for the contrib

Contribs Written: Nochex APC Payment Module, Cheque Payment Module

Contribs Updated: Information Pages Unlimited, Latest News V1

You've gotta be Quick on the Draw in this game!

Link to comment
Share on other sites

Sounds interesting!

Could you explain what you use it for. Is is when you simply want to allow the customer to pay a fee for services rendered and there is no producted - either downloaded or delivered?

Link to comment
Share on other sites

It's used to apply a surcharge to a payment type. but it seems there maybe more worms in the can to do this :o

look at http://www.oscommerce.com/forums/viewtopic.php...p=193917#193917

Contribs Written: Nochex APC Payment Module, Cheque Payment Module

Contribs Updated: Information Pages Unlimited, Latest News V1

You've gotta be Quick on the Draw in this game!

Link to comment
Share on other sites

Sounds interesting!

Could you explain what you use it for. Is is when you simply want to allow the customer to pay a fee for services rendered and there is no producted - either downloaded or delivered?

 

You can use it to apply a fee to any payment type there is another mod you can use for a discount to get around the terms some companies have. For example, if you are in hte UK you can charge payment type fees. In the US some times a no-no so you can rename it an administration fee etc.

For example, if you accept bank transfers - typically your bank will charge you $15 or more. You can use this to figure out the amount to automatically add to the order charges.

Link to comment
Share on other sites

  • 8 months later...

I believe the surcharge is being added to the tax rate and not the total. I have modifed the code as per the following:

 

$od_pc = $this->percentage;// + .35; //this is percentage plus the base fee

notice that i moved the .35 from the line above for the percent to the line below...total amount.

$od_amount = round($amount*10)/10*$od_pc/100 + .35;

Link to comment
Share on other sites

  • 4 weeks later...

Have just installed this mod, and set it up to add to PayPal payments.

 

However, on the Order Confirmation screen, it is NOT listing it, all I get is...

 

Sub-Total: ?12.00

Per Item (Postage): ?1.50

Total: ?13.50

 

I've set it up so that it's supposed to add it after the postage value and before the total, but as you can see there's nothing there.

 

One thing do I just enter "paypal" into the "payment Type" box? in the install.txt it said this was default to paypal, but was actually set to "moneyorder" ?!?

 

Thanks in advance.

 

Stewart

Edited by Stewart Gilray
Link to comment
Share on other sites

  • 3 years later...

Gday - does anyone know how I could use TWO of these modules on the same store.

ie one for Credit Card payments & the other for Paypal both with different % charges?

 

I have tried charging the files to ot_surcharge2.php & changing every instance on ot_surcharge to ot_surcharge2 - but it doesn't work.

I get two of the modules in admin - but changing one changes both....

 

What am I missing?

Thanks

Link to comment
Share on other sites

Gday - does anyone know how I could use TWO of these modules on the same store.

ie one for Credit Card payments & the other for Paypal both with different % charges?

 

I have tried charging the files to ot_surcharge2.php & changing every instance on ot_surcharge to ot_surcharge2 - but it doesn't work.

I get two of the modules in admin - but changing one changes both....

 

What am I missing?

Thanks

If you are running ms1 you should look at installing the latest.

Link to comment
Share on other sites

  • 5 weeks 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...