close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Sizes option

Thread began 9/16/2009 4:01 pm by livforev259913 | Last modified 9/28/2009 2:57 pm by livforev259913 | 2913 views | 7 replies

Jason ByrnesWebAssist

so, the size list should be set to use the sizes_table.Description as the label and sizes_table.Sizes_ID as the value.

you will need to create price lookup recordset to return the price and description for the selected size.


The add to cart form will have a hidden form element for the Item ID, and the Price select list. the names will be similar to:
Cartname_1_ID_Add
Cartname_1_Size_Add

you'll want to chaeck the add to cart form for the correct form element names. These will be used to filter the recoprdset.


The Recordset will be created using Advanced View.

Enter the following query in the SQL window:
SELECT price_table.Price, sizes_table.Description
FROM price_table
INNER JOIN sizes_table ON price_table.Sizes_ID = sizes_table.Sizes_ID
WHERE price_table.Items_ID = cartItem AND price_table.Sizes_ID = cartSize

In the Variables window, create the following 2 variables:
Name: cartItem
Type: Number
Default Value: -1
Run Time Value: $_POST['Cartname_1_ID_Add']

Name: cartSize
Type: Number
Default Value: -1
Run Time Value: $_POST['Cartname_1_Size_Add']

Remember, the names of the form elements may be slightly different, so make sure to use the correct form element names.

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