Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    26

    cart error Payment Module Fee - Order Total Module [Support]

    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
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  2. #2
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Payment Module Fee - Order Total Module [Support]

    Quote Originally Posted by twitchtoo View Post
    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.

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Payment Module Fee - Order Total Module [Support]

    zencart 157, php 7.3.9, green responsive classic

  4. #4
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Payment Module Fee - Order Total Module [Support]

    Quote Originally Posted by marton_1 View Post
    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.
    That means this:
    Code:
    class ot_paymentmodulefee {
    
        function ot_paymentmodulefee()
    ..
    needs to change to this:
    Code:
    class ot_paymentmodulefee {
    
        function __construct()
    ..
    There are lots of other PHP code changes to incorporate as well when upgrading from older syntaxes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Payment Module Fee - Order Total Module [Support]

    Many thanks, works fine now.

    Pity the original authors do not update their work, assuming they are still around and in good health.

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    8,672
    Plugin Contributions
    9

    Default Re: Payment Module Fee - Order Total Module [Support]

    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

  7. #7
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    562
    Plugin Contributions
    0

    Default Re: Payment Module Fee - Order Total Module [Support]

    I do not charge extra fees, I give a discount for advance payment.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Payment Module Fee - Order Total Module [Support]

    Quote Originally Posted by marton_1 View Post
    Pity the original authors do not update their work, assuming they are still around and in good health.
    Unfortunately Numinix doesn't always keep their plugin submissions up-to-date. You could contact them via their website to ask them to update this one.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    36
    Plugin Contributions
    0

    Default Re: Payment Module Fee - Order Total Module [Support]

    The fix above makes the module compatible with the PHP 7.4 and ZC 1.5.7?


    Quote Originally Posted by DrByte View Post
    Unfortunately Numinix doesn't always keep their plugin submissions up-to-date. You could contact them via their website to ask them to update this one.

  10. #10
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    140
    Plugin Contributions
    3

    Default Payment Module Fee (or Discount) - Order Total Module [Support]

    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Do I need remove all Payment,Shipping, Order Total Module Before Upgrade?
    By explorer1979 in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 24 Jun 2015, 11:05 AM
  2. v151 Low order fee in trouble with custom payment module
    By ellivir in forum Addon Payment Modules
    Replies: 3
    Last Post: 27 Feb 2014, 03:32 PM
  3. payment type fee module
    By cplam999 in forum Addon Payment Modules
    Replies: 62
    Last Post: 11 Feb 2010, 01:18 PM
  4. I want an order-total module to display total w/o tax
    By ivanc in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 31 Oct 2009, 12:11 PM
  5. how do I enable/disable a payment module based on order total?
    By amy351111 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 23 Jul 2008, 10:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR