close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Sample WA Database - OPTIONS?

Thread began 5/11/2010 10:22 am by Art | Last modified 5/25/2010 4:18 pm by Art | 2512 views | 25 replies

Art

Well, I finally got this working...really...

I thought I had figured out how to do this before; however, I ran into a long line of bugs that sent me around in circles.

The instructions were a little bit wrong too: some of the copy and the screen captures in the "How to do Options" page, did not mesh. Perhaps someone could look at that?

Anyways, I now want to display these "Options" on the "Shopping Cart" page where I display all the items selected for purchase.

Because the "selection" of options only pulls in the form value (ID) of the pull-down selection but not the label. In other words, it saves the value or the Option as an eCart Variable but it doesn't store the item label. And when I want to display this description, the only way I can think of doing this is to add an "if statement" to sort out what "option" they selected: (see below)

VBScript
<%
' Show IF Conditional region2
If (WA_eCart_DisplayInfo(CartName, "FrameID") = "") Then
%>

---
<%
Else If WA_eCart_DisplayInfo(CartName, "FrameID") = 1 Then %>
No Frame<%End If%>
<%If WA_eCart_DisplayInfo(CartName, "FrameID") = 2 Then%>
Black Frame<%End If%>
<%If WA_eCart_DisplayInfo(CartName, "FrameID") = 3 Then%>
Gold Frame<%End If%>
<%If WA_eCart_DisplayInfo(CartName, "FrameID") = 5 Then%>
Wood Frame<%End If%>
<%End If%>



To me, doing it like the above kind of ruins the whole point of having a dynamic site; this is especially true if there are a long line of possible "options."
How do I store this as an ecart variable that I can display in the line-item list of products?

How do I add an Option Description as an eCart Variable that is created when an item is selected from the pulldown and added to the cart?

Originally Said By: Jason Byrnes
  only if both options will increment the price.

In the tutorial, we where trying to illustrate both scenarios, options that DO NO effect (color) and options that DO effect price (size)

If in your case both options effect price, then yes, you will need to add the extra columns to account for it and adjust the calculations.  



That makes more sense.

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