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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart Vouchers

Thread began 11/16/2011 9:21 pm by david331670 | Last modified 11/18/2011 9:33 am by Jason Byrnes | 583 views | 3 replies |

david331670

eCart Vouchers

Hi
I would like to offer my customers a uniquely numbered voucher for a Gift certificate purchase. How can I have the number generated and placed in an email up dateable form field/ or html table that I can design in DW for UE.
I have a data base that collects sales info but how do I get the "auto incremental number" from a new number field in the table in the data base to insert into this field? (like the Order receipt number used after a completed transaction)
I am not sure how this is done, can you please point me in the correct direction
Thanks
David

Sign in to reply to this post

Jason ByrnesWebAssist

use the security assist Random Password tool.


on the bindings panel, click the plus button and select WebAssist -> Random Password.

then add a Set Session variable behavior, On the server behaviors panel, click the plus button and select eCart -> General -> Set Session Value

set the trigger to before page load, set the name to something like VoucherCode, click the lightning bolt next to value and select the random password binding.

use this session in the database and in the email to send the voucher code.

Sign in to reply to this post

david331670

eCart Voucher

Thank you
I will give it a try.
Do I need to set up a table, field in a table in the data base to record the random password code? or is there another alternative?
How do I record the numbers. I already have a table called coupon codes but I need to record the details of the voucher recipient as well as the voucher number
Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the voucher code is basicly a product that you are selling, correct?

If so, set up a column in the order details table to capture the value stored in the session variable.


in the eCart Store Order Details behavior that will be created by the checkout wizard, you can bind the new column of the order details table to the session variable.

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