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

Adding more product options

Thread began 4/12/2012 7:58 pm by phil107723 | Last modified 4/16/2012 12:07 pm by phil107723 | 549 views | 3 replies

Jason ByrnesWebAssist

the optiongroups table defines that types of options you will offer, create a new record and set the OptionGroupName to "Size", the OptionGroupID will automaticly be assigned a number, if it is the first record, the number will be set to 1:

optiongroups:
| OptionGroupID | OptionGroupName |
|---------------|-----------------|
| 1 | Size |
|---------------|-----------------|




the options table defines the options that belong to a group, create a new record for each size option, set the OptionGroupID to use the number for the size option in the optiongroups table, and the OptionName to the name of the size:

options:
| OptionID | OptionGroupID | OptionName |
|----------|---------------|------------|
| 1 | 1 | 350mm |
|----------|---------------|------------|
| 2 | 1 | 400mm |
|----------|---------------|------------|
| 3 | 1 | 450mm |
|----------|---------------|------------|



the productptions table assigns the options to the product. the ProductOptionID is an auto inclrement column and will automaticly get a value.

the ProductID column should be the ID for the products, it relates to the products.ProductId

the OptionID column is the ID for the option from the options.OptionId column

the OptionGroupID is the ID of the optiongroup from the optionsgroups.OptionGroupID

the OptionPriceIncrement defines how much more the option will cost for that product
this is an example if the ID of the product is 1923

productptions:
| ProductOptionID | ProductID | OptionID | OptionGroupID | OptionPriceIncrement |
|-----------------|-----------|----------|---------------|----------------------|
| 1 | 1923 | 1 | 1 | |
|-----------------|-----------|----------|---------------|----------------------|
| 2 | 1923 | 2 | 1 | 50 |
|-----------------|-----------|----------|---------------|----------------------|
| 3 | 1923 | 3 | 1 | 75 |
|-----------------|-----------|----------|---------------|----------------------|

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