Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have installed worldpay - v4.0 - ver1.8.zip which works fine until someone places a order... they pay for the item using worldpay and recieve a Confirmatione mail from worldpay however when i check in the admin panel it displays no orders.

 

Could this be to do with me using any of the following contributions?

 

Register Globals patch & Simple Template System

 

any ideas ??

Posted

Please someone ................................................................................

.................................

  • 1 month later...
Posted

Just incase you haven't worked it out.

 

worldpay callback doesn't work with sts mod. It doesn't call back. So you need to turn it off on the wpcallback.php page. Add the following code:

 

if (strpos($scriptname, "wpcallback") !== false) {
$display_normal_output = 1;
$display_template_output = 0;
}

 

just below

 

$display_normal_output = 1;
$display_template_output = 0;
}

 

In the sts_display_output.php file in your includes folder.

 

wpcallback.php also doesn't call back with register globals switched off so you need to add a bit of code to the top of the file to fix this.

 

if (!isset($_GET)) { $_GET = &$HTTP_GET_VARS;}

if (!isset($_POST)) { $_POST = &$HTTP_POST_VARS;}

if (!isset($_SESSION)) { $_SESSION = &$HTTP_SESSION_VARS;}

if (!isset($_SERVER)) { $_SERVER = &$HTTP_SERVER_VARS;}

if ( !isset($_ENV)) { $_ENV = &$HTTP_ENV_VARS;}

if ( !isset($_COOKIE)) { $_COOKIE = &$HTTP_COOKIE_VARS;}

if ( !isset($_FILES)) { $_FILES = &$HTTP_POST_FILES;}

if ( !isset($_REQUEST)) { $_REQUEST = &$_GET&$_POST&$_COOKIE&$_FILES;}


// Now scripts will function as though register globals is on

if (isset($_GET)) { extract($_GET); }

if (isset($_POST)) { extract($_POST); }

if (isset($_SESSION)) { extract($_SESSION); }

if (isset($_SERVER)) { extract($_SERVER); }

if (isset($_ENV)) { extract($_ENV); }

if (isset($_COOKIE)) { extract($_COOKIE); }

if (isset($_FILES)) { extract($_FILES); }

if (isset($_REQUEST)) { extract($_REQUEST); }

 

Hope this helps

 

Cheers, Andrew

WebUK.biz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...