close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Customer Order Reference Numbers

Thread began 8/10/2009 10:15 am by jenkolaka19379118 | Last modified 8/12/2009 7:57 pm by Eric Mittman | 1613 views | 3 replies |

jenkolaka19379118

Customer Order Reference Numbers

Hi all,

I just wondered if ecart could do the following?

When a customer finishes a transaction, they recieve an order reference number e.g

Thank you for your order your reference number is 9823750.

Then with this number they can track thier order. Is there a way this number can be dynamically generated and inserted in my order details table as well as displayed to the customer on a confirmation page? or do I have to manually create this number with each order?

I'm sure this has a simple answer but I can't work out how to do this.

Many thanks in advance.

Sign in to reply to this post

Eric Mittman

If you have specific criteria for the reference number then it will need to be a custom thing that you generate manually based on your requirements. By default eCart uses the session id as the unique identifier for the order. This is the value you see as your order number. It will be inserted into the db for the order reference id. It is usually a good length string that contains both numbers and characters.

Sign in to reply to this post

jenkolaka19379118

Thanks Eric,

I did not actually realise ecart had this feature. That is my problem solved!

Just for knowledge sake, in a nutshell how does ecart generate the random string using php?

Sign in to reply to this post

Eric Mittman

It is the session id that eCart uses. In PHP this is:

php:
<?php session_id(); ?>



If you assign this value to a variable or print it after calling the session start function you will have the session id. Here is a link to the PHP page for this:

php.net/session_id

This is also how you would set the session id yourself if you needed to.

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