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

Gift Certificates (Part 2)

Thread began 10/27/2009 5:31 pm by scott351953 | Last modified 11/09/2009 5:51 pm by scott351953 | 1472 views | 7 replies

Eric Mittman

I think the easiest way to ensure that this code is only added for a gift certificate is to add some custom code to the page where the binding is set in the add to cart server behavior. We should check that the item is a gift card, if it is then we will add the random value to that column in the cart, otherwise just leave it blank. The code will look something like this:

$ATC_itemCode = (is gift certificate)?WA_RandomPassword(6, false, true, true, ""):"";// column binding

This code is setting the column for the cart to either the random password binding that you configured or "" depending on weather or not the condition in the parenthesis is true. In this example I just have (is gift certificate) this will need to be updated with a legit check of the item to see if it a gift certificate. What criteria do you use to determine if it is a gift certificate? Is it the category?

This is just an example but it would look very similar to this for you. If you can post back with the current line of code from your add to cart that is setting this value and also some info about how you determine if the item is a gift certificate I can help you craft what this line will look like exactly.

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





Ease of use


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