Jump to content

MickEssex

Members
  • Content count

    23
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Mick Avis
  • Location
    Essex UK
  • Interests
    Trying to figure out php!
  • Website
  1. I have osCommerce installed on a shared server, it is installed only once, I have no problems at all. Hope this helps :)
  2. Hi Can anyone help? I have installed a bank transfer payment module (for the UK), everything works fine. I get displayed: Account name Account Number Sort Code But I need another field for 'Reference' , this needs to be 'Order #' so The details should look like this: Account name: Blogs Ltd Account Number: 123456789 Sort Code: 00-00-00 Reference: (Order #) I think I need something along the lines of <?php echo $oID;?>. but this references 'order.php' which is in the admin folder. Any ideas on how to grab the order id? and include it on the order confirmation page and in the confirmation email. I have included the code from both files below. includes/modules/payment/transfer.php <?php /* $Id: transfer.php,v 1.10 2003/01/29 19:57:14 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class transfer{ var $code, $title, $description, $enabled; // class constructor function transfer() { global $order; $this->code = 'transfer'; $this->title = MODULE_PAYMENT_TRANSFER_TEXT_TITLE; $this->description = MODULE_PAYMENT_TRANSFER_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_TRANSFER_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_TRANSFER_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->email_footer = MODULE_PAYMENT_TRANSFER_TEXT_EMAIL_FOOTER; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_TRANSFER_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_TRANSFER_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } } 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_TRANSFER_TEXT_DESCRIPTION); } function process_button() { return false; } function before_process() { return false; } function after_process() { return false; } function get_error() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_TRANSFER_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Do you want to accept Bank Transfer payments?', 'MODULE_PAYMENT_TRANSFER_STATUS', 'True', 'Do you want to accept Bank Transfer payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now());"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Account Name:', 'MODULE_PAYMENT_TRANSFER_PAYTO', '', 'Account Name?', '6', '1', now());"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Account number:', 'MODULE_PAYMENT_TRANSFER_ACCOUNT', '', 'Account number', '6', '1', now());"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Code:', 'MODULE_PAYMENT_TRANSFER_BANK', '', 'Sort Code', '6', '1', now());"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_TRANSFER_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_TRANSFER_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_TRANSFER_PAYTO', 'MODULE_PAYMENT_TRANSFER_ACCOUNT', 'MODULE_PAYMENT_TRANSFER_BANK', 'MODULE_PAYMENT_TRANSFER_STATUS', 'MODULE_PAYMENT_TRANSFER_ZONE', 'MODULE_PAYMENT_TRANSFER_ORDER_STATUS_ID', 'MODULE_PAYMENT_TRANSFER_SORT_ORDER'); } } ?> includes/languages/english/modules/payment/transfer.php <?php /* $Id: transfer.php,v 1.6 2003/01/24 21:36:04 thomasamoulton Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('MODULE_PAYMENT_TRANSFER_TEXT_TITLE', 'Bank Transfer'); define('MODULE_PAYMENT_TRANSFER_TEXT_DESCRIPTION', 'Please use the following information to make a Bank Transfer.' . '<br><br>Account Name: '. MODULE_PAYMENT_TRANSFER_PAYTO .'<br>Account No: ' . MODULE_PAYMENT_TRANSFER_ACCOUNT . '<br>Sort Code: ' . MODULE_PAYMENT_TRANSFER_BANK . '<br>Reference: ' . MODULE_PAYMENT_TRANSFER_REFERENCE .'<br><p>' . 'We will ship your order after we receive your payment, this can take approximately 4 working days.<BR>This information has been sent in your \'Order Confirmation\' e-mail.'); define('MODULE_PAYMENT_TRANSFER_TEXT_EMAIL_FOOTER', "Please use the following information to make a Bank Transfer.". "\n\nAccount Name: " . MODULE_PAYMENT_TRANSFER_PAYTO . "\nAccount No: " . MODULE_PAYMENT_TRANSFER_ACCOUNT ."\nSort Code: " . MODULE_PAYMENT_TRANSFER_BANK ."\nReference: " . MODULE_PAYMENT_TRANSFER_REFERENCE . "\n\n" . 'We will ship your order after we receive your payment, this can take approximately 4 working days.'); ?> Thanks Mick
  3. MickEssex

    'Worldpay 4.0 version 1.7' Contribution

    Hi, Can anyone help? I posted this in General Support but got no response so I am trying here. I installed the 'Worldpay 4.0 version 1.7' on MS2.2 I have my WorldPay account (currently in test mode) I set everything in admin and in worldpay admin. when I try a test order I get the following error on the worldpay server: I currently have a live site and desperately need this module working. Is it the module or worldpay settings that are not right? Any help greatly appreciated
  4. MickEssex

    Graphical Borders on RSS News

    I am impressed, so much so I thought I would give it a go. I tried it on my test site first rather than my live site and I'm glad I did! Instead of editing the files manually I uploaded everything in the contribution. Hey presto, lovely looking left column infoboxes, but thats it. Every page throughs up the same error Fatal error: Cannot redeclare mws_header() (previously declared in /homepages/46/d85331627/htdocs/ssl/catalog/includes/mws_functions.php:9) in /homepages/46/d85331627/htdocs/ssl/catalog/includes/mws_functions.php on line 9 Got any ideas where I have gone wrong? Never the less I am still very impressed and would love to sort this out. I viewed your site with netscape 6.2, some of the images appear not to be loading correctly, it works fine in IE 6. Thanks
×