close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

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 brandoli400690 | 1105 views | 3 replies

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]);
}
}
}
?>

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