Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

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

    Quote Originally Posted by OldNGrey View Post
    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
    Thanks for updating!

    Note, though, that PHP 8.2 has a requirement that you pre-define all class variables prior to use, otherwise a PHP error results. So far, the only class variables defined are $title and $output.

  2. #12
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

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

    PHP8.2 was going to be the next step.
    The zc158 PHP8.2 version is now in my GitHub at https://github.com/OldNGreyBMR/payme...ses/tag/v2.0.1

  3. #13
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

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

    I have posted the latest version for approval.

    This version 2.0.2 allows for:
    ZC 1578d and zc158a compatible with PHP 7.4 to PHP 8.2. ;
    correctly includes group discount and coupon credits, and
    the version number display in on the Admin page

    GitHub repository: https://github.com/OldNGreyBMR/paymentmodulefee
    The plugin download page is : https://www.zen-cart.com/downloads.php?do=file&id=1487
    Last edited by OldNGrey; 14 May 2023 at 04:54 AM. Reason: correct links
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  4. #14
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    46
    Plugin Contributions
    0

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

    Hi Guys is it possible to allow discount of less than 1% with this module? Currently is set to integer format and 1% is the minimum it can accept. For example if the customer pays by Bank Transfer he gets 0.5% discount.

  5. #15
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

    Change the (int) casts in the process() function to (float) casts and it should work.

    @OldNGrey, this change should be made to the official version.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #16
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

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

    Version 2.0.3 has been submitted for approval.
    This version allows fee < 1 ; allows decimal in discount value

    GitHub repository: https://github.com/OldNGreyBMR/paymentmodulefee
    The plugin download page is : https://www.zen-cart.com/downloads.php?do=file&id=1487
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

 

 
Page 2 of 2 FirstFirst 12

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