Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 63
  1. #31
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment type fee module

    Somewhere there is missing code and it is not testing as enabled when the checkout_payment page is run ...

    This could be a typo or a test blocking the:
    $this->enabled

    from evaluating as true when the module is run ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #32
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    Quote Originally Posted by Ajeh View Post
    Somewhere there is missing code and it is not testing as enabled when the checkout_payment page is run ...

    This could be a typo or a test blocking the:
    $this->enabled

    from evaluating as true when the module is run ...
    Hi Linda,

    I checked the code. No typo.
    Just that I don't have zone to select since I m not in USA. Does it matter?

    This line is ok
    $this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);

  3. #33
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    Quote Originally Posted by CJJUNE View Post
    Hi Linda,

    I checked the code. No typo.
    Just that I don't have zone to select since I m not in USA. Does it matter?

    This line is ok
    $this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
    I just attach this file. Just in case someone might need to help to check the code.

    Thank you.
    Attached Files Attached Files

  4. #34
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment type fee module

    Looks like this is setting it to 0 or false vs true ... and false means OFF or HIDE

    PHP Code:
          //$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
          
    $this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS'True') == 0); 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #35
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    Quote Originally Posted by Ajeh View Post
    Looks like this is setting it to 0 or false vs true ... and false means OFF or HIDE

    PHP Code:
          //$this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false);
          
    $this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS'True') == 0); 
    Hi hello hello

    I know this problem is rather simple to the PHP coders . But not foer me. Yes Ajeh you are right, the code below means forever true, even if I set it False in Admin, it will still be true. Another dead end:-

    $this->enabled = (strcasecmp(MODULE_PAYMENT_TTransfer_STATUS, 'True') == 1)


    If I use :- $this->enabled = ((MODULE_PAYMENT_TTransfer_STATUS == 'True') ? true : false), this code will be forever False even if I set it to True.

    So anyone, please help to get the right code. Thank you

  6. #36
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    I still cant get this to work.
    Anyone with a golden touch to solve this thing?

  7. #37
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment type fee module

    How about zipping up the two files for this and attaching them here
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #38
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    Quote Originally Posted by Ajeh View Post
    How about zipping up the two files for this and attaching them here
    Sure no problem.

    1 from includes/module/payment/ and 1 from includes/languages/English/modules/payment/TTransfer.zip

  9. #39
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: payment type fee module

    Don't shoot yourself ... this is easy to fix ...

    You know how the moneyorder.php file has either:
    MONEYORDER
    moneyorder

    You should have:
    TTRANSFER
    ttransfer

    But you have mixed case ...

    This is mixing up the code and causing issue ...

    I just redid moneyorder with changing all:
    moneyorder to ttransfer
    MONEYORDER to TTRANSFER

    In both the code and the language files and voila!

    Now it is your turn to delete the old ones you made off the server and redo them ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #40
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: payment type fee module

    Quote Originally Posted by Ajeh View Post
    Don't shoot yourself ... this is easy to fix ...

    You know how the moneyorder.php file has either:
    MONEYORDER
    moneyorder

    You should have:
    TTRANSFER
    ttransfer

    But you have mixed case ...

    This is mixing up the code and causing issue ...

    I just redid moneyorder with changing all:
    moneyorder to ttransfer
    MONEYORDER to TTRANSFER

    In both the code and the language files and voila!

    Now it is your turn to delete the old ones you made off the server and redo them ...
    Are you saying that they are case sensitive?

 

 
Page 4 of 7 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. 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
  2. Link shipping to payment module type???
    By mikestaps in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Jan 2011, 11:14 PM
  3. Flat Rate Handling Fee for Payment Module
    By AngiePoo in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 17 Jan 2010, 09:42 AM
  4. Anyone knows a working Payment Type Discount module?
    By shirster in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 11 Jan 2009, 12:54 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