Jump to content
Sign in to follow this  
bluephoenix

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

Recommended Posts

I will post the link in a minute as I want to put this thread in the install for support issues.


"If you rundown your shadow, you will never catch it"

Bob Marley

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
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?

Share this post


Link to post
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://forums.oscommerce.com/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!

Share this post


Link to post
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.


"If you rundown your shadow, you will never catch it"

Bob Marley

Share this post


Link to post
Share on other sites

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;

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×