Forums / Addon Payment Modules / payment type fee module

payment type fee module

Locked

Views: 23,011

Results 21 to 40 of 63
This thread is locked. New replies are disabled.
15 May 2007, 3:53 PM
#21
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

payment type fee module

Ajeh:

These should be installed with the code in:
/includes/modules/shipping

/includes/modules/order_total

And the language files in:
/includes/languages/english/modules/shipping

/includes/languages/english/modules/order_total

I don't understand. Does it mean, I have have shipping code as well to get the new payment method display in Admin? In Admin/Payment/ so that I may configure the settings?

19 May 2007, 3:28 PM
#22
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: payment type fee module

No it means I lost my mind and typed /shipping instead of /payment ... :blink:

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!]
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!

19 May 2007, 3:33 PM
#23
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: payment type fee module

I saw it flying over Tennessee last night. I'll send it back express. lol

19 May 2007, 3:33 PM
#24
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

No it means I lost my mind and typed /shipping instead of /payment ... :blink:

:lookaroun Ok thanks. Will see what i have missed out and retest.

19 May 2007, 3:39 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: payment type fee module

stagebrace:

I saw it flying over Tennessee last night. I'll send it back express. lol

Dang and the truck drove by and did not stop ... I am doomed ... :eek:

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!]
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!

19 May 2007, 4:58 PM
#26
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

No it means I lost my mind and typed /shipping instead of /payment ... :blink:

Hi Linda

This is harder than I thought.

  1. I manage to get the order total in admin. But when I install the module, the installation works ok but nothing is display. Only Update and Cancel button.

  2. For Telegraphic Transfer, the transfer is to be made to account number...So i also need to change this line of code

if (IS_ADMIN_FLAG === true && (MODULE_PAYMENT_TTransfer_PAYTO == 'the Store Owner/Website Name' || MODULE_PAYMENT_MONEYORDER_PAYTO == '')) $this->title .= '<span class="alert"> (not configured - needs pay-to)</span>';

They are both title and website name. How do I get the account number out?

19 May 2007, 5:18 PM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: payment type fee module

I'd have to see the code for this module and right now I am not free to review it ...

Perhaps someone else can jump in and lend a hand ... :smile:

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!]
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!

19 May 2007, 5:43 PM
#28
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

I'd have to see the code for this module and right now I am not free to review it ...

Perhaps someone else can jump in and lend a hand ... :smile:

OK not today. Perhaps other day. PM me when you are free.
Thank you:smile:

19 May 2007, 6:13 PM
#29
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

I'd have to see the code for this module and right now I am not free to review it ...

Perhaps someone else can jump in and lend a hand ... :smile:

:clap:Hi Linda

I got it. Manage to get it out on the admin pages. I gone through the code. Correct some typo here and there. And by luck I got it.

Next how do I get it displayed on the check out page? Here like the screen below:-

21 May 2007, 3:55 PM
#30
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

CJJUNE:

:clap:Hi Linda

I got it. Manage to get it out on the admin pages. I gone through the code. Correct some typo here and there. And by luck I got it.

Next how do I get it displayed on the check out page? Here like the screen below:-

Hi guys/gals,

I already installed the newly added payment method called Telegraphic Transfer AND ALSO set it to TRUE. The payment method didn't appear in checkout.

Any idea why?:frusty: I have been too stuck...programming is so tough.

21 May 2007, 3:58 PM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

21 May 2007, 4:08 PM
#32
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

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);

21 May 2007, 4:28 PM
#33
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

CJJUNE:

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.

22 May 2007, 3:42 AM
#34
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: payment type fee module

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

      //$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!]
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!

22 May 2007, 3:22 PM
#35
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

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

  //$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 :frusty:. 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.:frusty: Thank you
25 May 2007, 2:31 PM
#36
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

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

25 May 2007, 3:36 PM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: payment type fee module

How about zipping up the two files for this and attaching them here :smile:

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!]
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!

25 May 2007, 4:18 PM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :eek:

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! :cool:

Now it is your turn to delete the old ones you made off the server and redo them ... :smartalec:

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!]
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!

26 May 2007, 1:23 PM
#40
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: payment type fee module

Ajeh:

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 ... :eek:

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! :cool:

Now it is your turn to delete the old ones you made off the server and redo them ... :smartalec:

Are you saying that they are case sensitive?