close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

success page order number wont display

Thread began 2/17/2010 4:34 pm by sam308940 | Last modified 2/19/2010 4:27 pm by web_assist_mail157665 | 1622 views | 10 replies |

sam308940

success page order number wont display

on the SUCCESS page i cannot get the order # to display.

the email confirmation shows the order #
and the "order details" table saves the order # as well.
but the success page doesnt show it.

and the code is the same in all 3 places
<?php echo ((isset($_SESSION["JULES_OrderID"]))?$_SESSION["JULES_OrderID"]:"") ?>

i do have a KILL session on the success page, but its at the BOTTOM of the page - the last code on the page.

Sign in to reply to this post

Jason ByrnesWebAssist

try changing that code to display the order # to:

php:
<?php 

if(!session_id()) session_start();
echo ((isset(
$_SESSION["JULES_OrderID"]))?$_SESSION["JULES_OrderID"]:"");
?>
Sign in to reply to this post

sam308940

no that didnt work either.

i even removed the kill session code, and ran an order - still didnt display.

I also tried making a new sessionid just after the email code (just after the send all mail script). that wouldnt display either.


any other ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the confirm page and the success page so I can examine the code.

Sign in to reply to this post

sam308940

the only bum side to using the form over the old ticket method is that when sharing my files with you guys im sharing them with everyone.

can you offer something private for when loading the files?
or can i request that? (bad part of requesting is that i have to wait again to hear back - time is of the essence somtimes).

anyways heres my files......

thanks for your help
you guys are always great about helping and its soo appreciated.

Attached Files
wwwroot.zip
Sign in to reply to this post

web_assist_mail157665

Most odd
only one of my test orders has an order number in the email?

Where does the order number come from?
I thought the order summary and detail order ID were auto inc in the database?

or is this number 'pulled' from the summary ID?

Assume this should be working if confirmation checkout and checkout_success pages were created by the gateway wizard??

Sign in to reply to this post

Jason ByrnesWebAssist

in the success page you sent, you are outputting the order number using the following code:

php:
Receipt For Order #<?php echo $_SESSION["OID"];?> </h3>





on the confirm page the store order summary behavior stores the session order number as:


php:
$WA_sessionName = "JULES_OrderID";





change the code on the success page to reference the correct order number session:

php:
Receipt For Order #<?php echo $_SESSION["JULES_OrderID"];?> </h3>
Sign in to reply to this post

sam308940

sorry! i was experimenting with that OID variable.
on the confirmation page i tried creating a new session id OID
then on the success page i tried pulling that session id
but it didnt work - there was still no display

so im still back to sqaure 1 - the correct code(that you suggested putting on the success page) doesnt work. thats what i had before the above experiment.

so - can you look at the files more closely?

Sign in to reply to this post

web_assist_mail157665

I'm still confused

do you need to assign a value to the orderID
OR
is this automatically taken from the OrderID (autoinc index) value in the database on insertion or the order?

(checkout pages created by wizard)

Sign in to reply to this post

Jason ByrnesWebAssist

perhaps the session is not being saved on redirect. on the confirm page, find the following code:

php:
<?php

// WA eCart Redirect
if ($JULES->redirStr != "")     {
  
header("Location: ".$JULES->redirStr);
}
?>



and change it to:

php:
<?php

// WA eCart Redirect
if ($JULES->redirStr != "")     {
  
session_commit();
  
header("Location: ".$JULES->redirStr);
}
?>



web_assist_mail:
The ID number of the record that is inserted is stored in the session variable using the mysql_insert_id() command in the store order summary behavior:
$_SESSION[$WA_sessionName] = mysql_insert_id();


Double check the code order on your confirm page, make sure that the Store Order Summary behavior is before the Universal Email Behavior, The weighting system that Dreamweaver uses for server behavior placement can sometimes malfunction causing the behaviors to be placed out of order.

Sign in to reply to this post
loading

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