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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

dynamic select list different prices

Thread began 11/19/2014 7:09 am by sabastian130416448 | Last modified 11/20/2014 12:56 pm by sabastian130416448 | 143 views | 5 replies

Jason ByrnesWebAssist

in the product options tutorial:
http://www.webassist.com/tutorials/Product-Options-with-eCart

there are two types of product options covered:
Color options without a price increment.
Size options with a price increment for certain sizes.

the section that deals with the size options will help you in creating this.

the Basic idea is this:

There is products table that defines the products

There is an option groups table that defines the groups: size , color.

Another table defines the options, small, medium, blue yellow. the options table has a column that links to the option groups table so define which options belong to which group, Small to size group, yellow to color group.

there is a product options table. this table is used to assign options to a given product. in this table there is a linking column to store the product ID. there is also a column for price increment.

on the page, you create a recordset to lookup the Size options for the product and use that recordset to populate the list using the productoptionid column as the value.

you create another recordset that will lookup the selected product option id to return the option name and price increment.

this recordset is used for the size column in the cart, and the size price increment column.

in the cart object, you create a calculation to set the true Price of the product as the price + sizePriceIncrement

the tutorial linked above coves the particulars of creating the needed recordsets and cart columns, and calculations.

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