Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Payment module radio button

Payment module radio button

Locked

Views: 3,261

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
30 Aug 2007, 12:33 AM
#1
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Payment module radio button

Hello, I have two payment modules instaled, credit card and money order.
The money oder radio button has no description beside it, i would like to the description to say "Direct deposit or other" but i cant find where to edit it .
I have used developers tool kit for hrs and no luck, can you please advise me where to find. Regards rod

30 Aug 2007, 12:57 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Try this

includes\languages\english\modules\payment\moneyorder.php define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');

30 Aug 2007, 1:20 AM
#3
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Thanks Superprg, that is close but not quite there yet.
in the credit card box there is a radio button to click for credit card stuff with a 'credit card' description
In the same box directly under the cvv info , there is a radio button button with no description beside when clicked it goes on to to page three of confirmation.
i would like to put money order or other beside that button. regards, rod

30 Aug 2007, 1:35 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

rocketrod:

Thanks Superprg, that is close but not quite there yet.
in the credit card box there is a radio button to click for credit card stuff with a 'credit card' description
In the same box directly under the cvv info , there is a radio button button with no description beside when clicked it goes on to to page three of confirmation.
i would like to put money order or other beside that button. regards, rod
Under Credit card there is already Money Order which can be enabled from Admin
Please see screenshot
This is what I have at my end. please see screenshot

30 Aug 2007, 1:49 AM
#5
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Yes thats just what i have got but the text beside the check button that says 'check/moneyorder' is missing, can you tell me the area to edit it please, ( I may have taken it away ages ago when i did not have credit card facilities)
Also the money order module is enabled. thanks for your help we are so close , Rod

30 Aug 2007, 1:53 AM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Ok
As I said, did you try editing
includes\languages\english\modules\payment\moneyorder.php?
or can you post that file here?

30 Aug 2007, 2:17 AM
#7
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Superprg, I have this, i can have edited it before, to suit but as you can see from the file the text is missing beside the button , Thank rod

/ +----------------------------------------------------------------------+
// $Id: moneyorder.php 1969 2005-09-13 06:57:21Z drbyte $
//

define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Direct Deposit/PayPal');
define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', '' . MODULE_PAYMENT_MONEYORDER_PAYTO . '' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.');
define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "" . "\n\n" . MODULE_PAYMENT_MONEYORDER_PAYTO . "" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');
?>

30 Aug 2007, 2:22 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Payment module radio button

Rod -

Which site is having this problem? What version of Zen Cart are you using?

30 Aug 2007, 2:25 AM
#9
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Seems like this file is not getting accessed or something

Go to Admin->Modules->Payment
Select Check/Money Order
What path do you see at the bottom?

Module Directory: C:/Program Files/Apache Group/Apache2/htdocs/zencart/includes/modules/payment/

30 Aug 2007, 2:26 AM
#10
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Kim, The site is https://www.earlcraftncake.com
and i am on ver 1.3.0.1, regards, Rod

30 Aug 2007, 2:29 AM
#11
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Module Directory: E:/Inetpub/wwwroot/earlcraftncake/includes/modules/payment/

30 Aug 2007, 2:33 AM
#12
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Not really getting whats happening here
Can you post first 25 lines of ths file?
includes\modules\payment\moneyorder.php

      $this->code = 'moneyorder';
      $this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE;
      if (IS_ADMIN_FLAG === true && (MODULE_PAYMENT_MONEYORDER_PAYTO == 'the Store Owner/Website Name' || MODULE_PAYMENT_MONEYORDER_PAYTO == '')) $this->title .= '<span class="alert"> (not configured - needs pay-to)</span>';
      $this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION;
      $this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER;
      $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
30 Aug 2007, 2:49 AM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Payment module radio button

What are the sort order numbers you have on the 2 payment modules?

30 Aug 2007, 3:09 AM
#14
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

class moneyorder {
var $code, $title, $description, $enabled;

// class constructor
function moneyorder() {
global $order;

  $this->code = 'moneyorder';
  $this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE;
  $this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION;
  $this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER;
  $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);

  if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
    $this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID;
  }

  if (is_object($order)) $this->update_status();

  $this->email_footer = MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER;
}

// class methods
function update_status() {
global $order, $db;

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_MONEYORDER_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_MONEYORDER_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
    while (!$check->EOF) {
      if ($check->fields['zone_id'] < 1) {
        $check_flag = true;
        break;
      } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
        $check_flag = true;
        break;
      }
      $check->MoveNext();
    }

    if ($check_flag == false) {
      $this->enabled = false;
    }
  }
}

function javascript_validation() {
  return false;
}

function selection() {
  return array('id' => $this->code,
               'module' => $this->title);
}

function pre_confirmation_check() {
  return false;
}

function confirmation() {
  return array('title' => MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION);
}

function process_button() {
  return false;
}
30 Aug 2007, 3:14 AM
#15
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Kim, both modules are set at 0 sort order

30 Aug 2007, 3:17 AM
#16
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Set one of the sort order to 5 and then see

30 Aug 2007, 3:32 AM
#17
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

Set sort Order to 5 on credit card and still the same

30 Aug 2007, 4:14 AM
#18
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Seems like a tricky problem
Go to Developer's toolkit in Admin and search for MODULE_PAYMENT_MONEYORDER_TEXT_TITLE and post the results here

30 Aug 2007, 4:26 AM
#19
rocketrod avatar

rocketrod

New Zenner

Join Date:
May 2006
Location:
Australia
Posts:
94
Plugin Contributions:
0

Re: Payment module radio button

E:/Inetpub/wwwroot/earlcraftncake/includes/languages/english/modules/custom/payment/moneyorder.php

Line #22 : define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');

E:/Inetpub/wwwroot/earlcraftncake/includes/languages/english/modules/payment/custom/moneyorder.php

Line #22 : define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', '');

E:/Inetpub/wwwroot/earlcraftncake/includes/languages/english/modules/payment/moneyorder.php

Line #22 : define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');

E:/Inetpub/wwwroot/earlcraftncake/includes/modules/payment/moneyorder.php

Line #30 : $this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE

30 Aug 2007, 4:40 AM
#20
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Payment module radio button

Fine
you have to make the change in
E:/Inetpub/wwwroot/earlcraftncake/includes/languages/english/modules/payment/custom/moneyorder.php
Try it and let us know how it goes