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

eCart Order number

Thread began 8/02/2010 2:00 am by david331670 | Last modified 8/02/2010 7:33 pm by Eric Mittman | 805 views | 3 replies |

david331670

eCart Order number

Hi
Me again.
I have set up an order system using web assist. The order number is always at 0. What do I need to do to get the confirm checkout page to produce an order number from the database.
The data base has created the order number but it is not in the confirming email.
I have set the email code after the "WA eCart Store Cart Summary in Db"
This accomplished the job in other sites but not here.
Any Suggestions??
Thanks
David

Sign in to reply to this post

Eric Mittman

How have you configured the store order summary server behavior? You should be able to specify a session variable to hold the id for the record. This session variable should then have the id for the inserted record and you should be able to use this session variable anywhere that you would like to see the order id. Please post back with the confirm page in question minus any of the sensitive details so that we can take a look.

Sign in to reply to this post

david331670

Order number

I have attached the confirm page. This is an order cart only, no financial transactions.
Thanks again
David

Attached Files
confirm.php.zip
Sign in to reply to this post

Eric Mittman

It looks like the store order summary is setup ok to me. When I check on the page I can see that you have specified the OrderID column as the index value for the table and to store this value in the session variable called Medifab_OrderID.

So after the order has been stored in the db you can reference this order id value on any other pages like this:

<?php
if(!session_id()) session_start();
echo $_SESSION['Medifab_OrderID'];
?>

Is this how you are referencing the value in the email and other pages? One other thing that I noticed was that you have a couple of store order details server behaviors on the page but they are after the UE server behavior on the page. This should be fine since you do not have any redirect on the UE server behavior but it just seemed like it might be out of order. When you post back please include the pages from the webassist folder in your site so I can take a look there.

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