close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order Number showing code instead of Order Number to customer

Thread began 1/13/2012 11:51 am by brandoli400690 | Last modified 1/19/2012 4:58 pm by Jason Byrnes | 1062 views | 3 replies |

brandoli400690

Order Number showing code instead of Order Number to customer

Hi there
When returned to our site from Paypal the Order Number on the page is showing code instead of Order Number to customer.
Should be Order #63.
I've attached a screen shot.
Thanks very much

Sign in to reply to this post

Ray BorduinWebAssist

Please send me a copy of that page referenced in the url so I can take a look. I'm looking at my version and it appears to have the correct code, but you may have an earlier version so I'll look and suggest what you might need to updated.

Sign in to reply to this post

brandoli400690

Order # showing as code in checkout success

Your file types don't support .php so here is the code from this page:
<?php
if (!empty($_SERVER['HTTPS'])) {
header("location: http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
die();
}
require_once('webassist/themes/theme_open.php');
$WAIncludeContent = new WA_Include(__FILE__);
?>
<?php
$WAeCart = new WA_Include('webassist/plugins/shopping_cart/cart_readonly.php');
require($WAeCart->BaseName);
$WAeCart->Initialize(true);
?>
<html><!-- InstanceBegin template="/Templates/themed_content.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Checkout Success - <?php echo($WAGLOBAL_Site_Name); ?></title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<?php
echo($WAeCart->Head);
?>
<!-- InstanceEndEditable -->
</head>
<body>
<!-- InstanceBeginEditable name="banner" --><!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="searchform" --><!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="main" -->
<h1>Order Receipt
Order # <?php echo(date('h')); ?>-<?php echo(date('d')); ?>-<?php echo (isset($_SESSION['OrderID'])?$_SESSION['OrderID']:session_id()); ?>-<?php echo(date('m')); ?>-<?php echo(date('y')); ?>
</h1>
<div class="contentBox ps_pod1 borderColor">
<?php
// if in test mode, skip all checkout code
if ($WAGLOBAL_Test_Mode == true) {
?>
<h3 class="errorText">Your site is in Test Mode. You will have to uncheck the Test Mode option from the General tab on the Admin Settings page before payments will be processed.</h3>
<?php
}
?>
<p><strong>Thanks for your order!</strong><br>
Please save or print this receipt for your records. Do not refresh this page or attempt to open it in another window. A copy of this reciept has been emailed to you.
</p>
<?php
// Determine if at least one product in the cart has a digital download. Need to remove spaces and commas as TotalColumn will return a comma space separated list of entries.
$coSuccess_cartDigitalGoods = str_replace(",", "", $WA_Store_Cart->TotalColumn("DigitalGood"));
$coSuccess_cartDigitalGoods = str_replace(" ", "", $coSuccess_cartDigitalGoods);

if($coSuccess_cartDigitalGoods != "" && $coSuccess_cartDigitalGoods != "0"){
?>
<form action="view_downloads.php" method="POST" name="form" id="form">
<input name="downloads" id="downloads" value="View Downloads" class="ps_buttons" type="submit">
</form>
<?php
}
?>
</div>
<br />
<?php
echo($WAeCart->Body);
?>

<br /><br />

<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="sidebar" --><!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="sidebar2" --><!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="end" -->
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
<?php require_once('webassist/themes/theme_close.php'); ?>
<?php
if ("" == ""){
// WA_ClearSession
$clearAll = FALSE;
$clearThese = explode(",","OrderID,WA_Store_Cart_Items,_3DS_Lookup_ViewData,_3dsTransactionID,_3DS_POST_Data,_3DS_AdditionalParams");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

it's hard to tell from the screen shot what is on the page, can you send another screen shot in a zip archive so i can get a better idea of what is going wrong?

also, what payment gateway are you using?

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...