Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big Problems after Moneybookers installation.


chris2407

Recommended Posts

hey guys,

 

im getting mad. I have just tried to install moneybookers_ipn. I copied all files to my catalog folder and added the following to the file filenames.php :

 

//moneybookers
 define('FILENAME_CHECKOUT_MONEYBOOKERSIPN', 'checkout_moneybookersipn.php');
 define('FILENAME_CHECKOUT_CHECKOUT_MONEYBOOKERSIPN_AFTER', 'checkout_moneybookersipn_after.php');
 define('FILENAME_MONEYBOOKERS_NOTIFY', 'moneybookers_notify.php');
 define('FILENAME_CHECKOUT_MONEYBOOKERSIPN_CANCEL', 'checkout_moneybookersipn_cancel.php');

 

 

 

Then i did add the following to the general.php:

<?php

//------------------
// for moneybookers
//------------------
//for languages
function tep_cfg_pull_down_language($lng_name, $key = '') {

//	  array('Selected Language','EN', 'DE', 'ES', 'FR');

  $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');

  $statuses_array = array(array('id' => 'Selected Language', 'text' => 'Selected Language'));
  $statuses_array[] = array('id' => 'EN',
							  'text' => 'EN');
  $statuses_array[] = array('id' => 'DE',
							  'text' => 'DE');
  $statuses_array[] = array('id' => 'ES',
							  'text' => 'ES');
  $statuses_array[] = array('id' => 'FR',
							  'text' => 'FR');

  return tep_draw_pull_down_menu($name, $statuses_array, $lng_name);
}

function tep_get_language($lng_name) {
  if (strlen($lng_name) == 0) {
	return 'Selected Language';
  } else {
	return $lng_name;
  }
}

//for currency
function tep_cfg_pull_down_currency($currency_name, $key = '') {

//   array('Selected Currency','EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR');

  $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');

  $statuses_array = array(array('id' => 'Selected Currency', 'text' => 'Selected Currency'));
  $statuses_array[] = array('id' => 'EUR',
							  'text' => 'EUR');
  $statuses_array[] = array('id' => 'USD',
							  'text' => 'USD');
  $statuses_array[] = array('id' => 'GBP',
							  'text' => 'GBP');
  $statuses_array[] = array('id' => 'HKD',
							  'text' => 'HKD');
  $statuses_array[] = array('id' => 'SGD',
							  'text' => 'SGD');
  $statuses_array[] = array('id' => 'JPY',
							  'text' => 'JPY');
  $statuses_array[] = array('id' => 'AUD',
							  'text' => 'AUD');
  $statuses_array[] = array('id' => 'CHF',
							  'text' => 'CHF');
  $statuses_array[] = array('id' => 'DKK',
							  'text' => 'DKK');
  $statuses_array[] = array('id' => 'SEK',
							  'text' => 'SEK');
  $statuses_array[] = array('id' => 'NOK',
							  'text' => 'NOK');
  $statuses_array[] = array('id' => 'ILS',
							  'text' => 'ILS');
  $statuses_array[] = array('id' => 'MYR',
							  'text' => 'MYR');
  $statuses_array[] = array('id' => 'NZD',
							  'text' => 'NZD');
  $statuses_array[] = array('id' => 'TWD',
							  'text' => 'TWD');
  $statuses_array[] = array('id' => 'THB',
							  'text' => 'THB');
  $statuses_array[] = array('id' => 'CZK',
							  'text' => 'CZK');
  $statuses_array[] = array('id' => 'HUF',
							  'text' => 'HUF');
  $statuses_array[] = array('id' => 'SKK',
							  'text' => 'SKK');
  $statuses_array[] = array('id' => 'ISK',
							  'text' => 'ISK');
  $statuses_array[] = array('id' => 'INR',
							  'text' => 'INR');

  return tep_draw_pull_down_menu($name, $statuses_array, $currency_name);
}

function tep_get_currency($currency_name) {
  if (strlen($currency_name) == 0) {
	return 'Selected Currency';
  } else {
	return $currency_name;
  }
}

//------------------
// end of for moneybookers
//------------------
?>

 

Then i did run the file moneybookers.sql with PHPmyadmin as described in the instructions... but now im getting some error messages in the admin area and even in the shop.

 

In the admin adrea:

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\catalog\admin\includes\functions\general.php:1309) in C:\xampp\htdocs\catalog\admin\includes\functions\sessions.php on line 97

 

 

In the shop:

 

//moneybookers define('FILENAME_CHECKOUT_MONEYBOOKERSIPN', 'checkout_moneybookersipn.php'); define('FILENAME_CHECKOUT_CHECKOUT_MONEYBOOKERSIPN_AFTER', 'checkout_moneybookersipn_after.php'); define('FILENAME_MONEYBOOKERS_NOTIFY', 'moneybookers_notify.php'); define('FILENAME_CHECKOUT_MONEYBOOKERSIPN_CANCEL', 'checkout_moneybookersipn_cancel.php');
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\catalog\includes\filenames.php:70) in C:\xampp\htdocs\catalog\includes\functions\sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\catalog\includes\filenames.php:70) in C:\xampp\htdocs\catalog\includes\functions\sessions.php on line 97

 

 

Please help me.

 

many thanks!!

Link to comment
Share on other sites

  • 10 months later...

Dear Chris,

 

Regarding your problem with installing moneybookers ipn ..

 

its on catalog/admin/includes/functions/general.php (file)

 

you have to put this code without the first php tag (opening php tag)

<?

and last tag (closing php tag)

?>

 

like this

 

//------------------
// for moneybookers
//------------------
//for languages
function tep_cfg_pull_down_language($lng_name, $key = '') {

//	  array('Selected Language','EN', 'DE', 'ES', 'FR');

  $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');

  $statuses_array = array(array('id' => 'Selected Language', 'text' => 'Selected Language'));
  $statuses_array[] = array('id' => 'EN',
							  'text' => 'EN');
  $statuses_array[] = array('id' => 'DE',
							  'text' => 'DE');
  $statuses_array[] = array('id' => 'ES',
							  'text' => 'ES');
  $statuses_array[] = array('id' => 'FR',
							  'text' => 'FR');

  return tep_draw_pull_down_menu($name, $statuses_array, $lng_name);
}

function tep_get_language($lng_name) {
  if (strlen($lng_name) == 0) {
	return 'Selected Language';
  } else {
	return $lng_name;
  }
}

//for currency
function tep_cfg_pull_down_currency($currency_name, $key = '') {

//   array('Selected Currency','EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR');

  $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');

  $statuses_array = array(array('id' => 'Selected Currency', 'text' => 'Selected Currency'));
  $statuses_array[] = array('id' => 'EUR',
							  'text' => 'EUR');
  $statuses_array[] = array('id' => 'USD',
							  'text' => 'USD');
  $statuses_array[] = array('id' => 'GBP',
							  'text' => 'GBP');
  $statuses_array[] = array('id' => 'HKD',
							  'text' => 'HKD');
  $statuses_array[] = array('id' => 'SGD',
							  'text' => 'SGD');
  $statuses_array[] = array('id' => 'JPY',
							  'text' => 'JPY');
  $statuses_array[] = array('id' => 'AUD',
							  'text' => 'AUD');
  $statuses_array[] = array('id' => 'CHF',
							  'text' => 'CHF');
  $statuses_array[] = array('id' => 'DKK',
							  'text' => 'DKK');
  $statuses_array[] = array('id' => 'SEK',
							  'text' => 'SEK');
  $statuses_array[] = array('id' => 'NOK',
							  'text' => 'NOK');
  $statuses_array[] = array('id' => 'ILS',
							  'text' => 'ILS');
  $statuses_array[] = array('id' => 'MYR',
							  'text' => 'MYR');
  $statuses_array[] = array('id' => 'NZD',
							  'text' => 'NZD');
  $statuses_array[] = array('id' => 'TWD',
							  'text' => 'TWD');
  $statuses_array[] = array('id' => 'THB',
							  'text' => 'THB');
  $statuses_array[] = array('id' => 'CZK',
							  'text' => 'CZK');
  $statuses_array[] = array('id' => 'HUF',
							  'text' => 'HUF');
  $statuses_array[] = array('id' => 'SKK',
							  'text' => 'SKK');
  $statuses_array[] = array('id' => 'ISK',
							  'text' => 'ISK');
  $statuses_array[] = array('id' => 'INR',
							  'text' => 'INR');

  return tep_draw_pull_down_menu($name, $statuses_array, $currency_name);
}

function tep_get_currency($currency_name) {
  if (strlen($currency_name) == 0) {
	return 'Selected Currency';
  } else {
	return $currency_name;
  }
}

//------------------
// end of for moneybookers
//------------------

 

just scroll down to the last line in your general.php file and add it before

?>

 

 

Hope this helps ..

 

Wise regards,

Saad

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...