Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

it's about this contribution: http://addons.oscommerce.com/info/4737

 

whenever I use it, the message pops up right, but then the customer is NOT guided to paypal anymore, instead, the order is instantly completed .

I inserted the section from <-- Begin Daddyroy's Alert -->

 

 

<?php
/*
 $Id: checkout_confirmation.php,v 1.139 2003/06/11 17:34:53 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
.
.
.
.
.
.
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>

<-- Begin Daddyroy's Alert -->
<?
$payment = $HTTP_POST_VARS['payment'];
$paypal = "paypal";

if(stristr($paypal, $payment)) {
?>
<body onLoad="alert('Viktig Informasjon:\n\nNår du klikker Bekreft Ordre vil du bli sendt til PayPal for en sikker betaling.\nDet er VIKTIG at returnerer til HeliHobby etter å ha betalt,\nslik at din ordrestatus blir oppdatert.\n\nNår du har betalt, klikk på knappen hos PayPal, for å returnere til HeliHobby.')"topmargin="0" bottommargin="0"> 
<?php
}
else
{
?>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> 
<?php
}
?> 
<--End Daddyroy's Alert -->

<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
....

 

 

Could somebody please tell why this is happening ?

Thank you.

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