Payment Module Fee - Recovery - Order Total Module
- https://www.zen-cart.com/downloads.php?do=file&id=1487
Version 1.1.0
I have this working on Zen Cart 1.55f on php 7.1
Printable View
Payment Module Fee - Recovery - Order Total Module
- https://www.zen-cart.com/downloads.php?do=file&id=1487
Version 1.1.0
I have this working on Zen Cart 1.55f on php 7.1
I get this warning message, do you also and did you fix it?
Code:PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ot_paymentmodulefee has a deprecated constructor in C:\xampp73a\htdocs\zencart157a\catalog\includes\modules\order_total\ot_paymentmodulefee.php on line 11.
zencart 157, php 7.3.9, green responsive classic
That means this:
needs to change to this:Code:class ot_paymentmodulefee {
function ot_paymentmodulefee()
..
There are lots of other PHP code changes to incorporate as well when upgrading from older syntaxes.Code:class ot_paymentmodulefee {
function __construct()
..
Many thanks, works fine now.
Pity the original authors do not update their work, assuming they are still around and in good health.
One thing to check in your area of the world is whether you can charge extra fees for certain processes.
For example, 10 American states make it illegal to add a surcharge to a credit/debit card transaction. Some of those states allow certified charities to charge.
Some merchants here in Texas get around the law by charging extra for the product and giving a discount for cash. This is what PayPal supports as they do not allow a surcharge to the customer. Not sure of the PayPal rules in Switzerland.
Just a little FYI to make sure you're not violating any local rules.
https://tinyurl.com/ydz3zshx
I do not charge extra fees, I give a discount for advance payment.
For anyone available to test a ZC158 PHP8.1 compatible version of Payment Module Fee (or Discount)
the files are in my GitHub at https://github.com/OldNGreyBMR/payme...g/v2.0.0_zc158
This module can add a charge for a payment method OR it can give a discount OR it can do various combinations.
Test this only on a TEST server and not on a Production Server. Backup before testing.
OldNGrey
ZenCart 158 PHP8.1