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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Product Options

Thread began 7/05/2011 2:58 pm by admin394099 | Last modified 4/16/2012 4:32 pm by admin394099 | 7658 views | 30 replies

Jason ByrnesWebAssist

sorry, that sentence should have been:

The value that will be used to draw the relations in the productoptions table is the productID.





no, the options and options groups only need tyo be defined once. you do not need to create an option group for each product, they will also use the same option group and options defined in those tables.

the options groups table defines the option groups that can be used by any product.

the options table defines the options that belong to the groups, again they can be used by any product.

the productoptions table is the glue that creates the relation between the product and the options that are available for it.


if you have the three products, lets say there are the 2 products:
pro doormat
cheap doormat:

+-----------+------------+----------------+
| ProductID | ProductSKU | ProductName |
+-----------+------------+----------------+
| 1 | CMC-02x03 | Pro Doormat |
+-----------+------------+----------------+
| 1 | CMC-01x02 | Cheep Doormat |
+-----------+------------+----------------+



the productoptions table is used to set which options each product is available in, for example, taking the sample data for the options table from my previous reply, could make the pro dormat available in:
Color: red, yellow blue
Size: small, medium and large,

and the cheep doormat in:
Color: red, green
Size: small and large:

+-----------------+-----------+----------+---------------+----------------------+
| ProductOptionID | ProductID | OptionID | OptionGroupID | OptionPriceIncrement |
+-----------------+-----------+----------+---------------+----------------------+
| 1 | 1 | 4 | 2 | |
+-----------------+-----------+----------+---------------+----------------------+
| 2 | 1 | 5 | 2 | |
+-----------------+-----------+----------+---------------+----------------------+
| 3 | 1 | 7 | 2 | |
+-----------------+-----------+----------+---------------+----------------------+
| 4 | 1 | 1 | 1 | |
+-----------------+-----------+----------+---------------+----------------------+
| 5 | 1 | 2 | 1 | |
+-----------------+-----------+----------+---------------+----------------------+
| 6 | 1 | 3 | 1 | |
+-----------------+-----------+----------+---------------+----------------------+
| 7 | 2 | 4 | 2 | |
+-----------------+-----------+----------+---------------+----------------------+
| 8 | 2 | 6 | 2 | |
+-----------------+-----------+----------+---------------+----------------------+
| 9 | 2 | 1 | 1 | |
+-----------------+-----------+----------+---------------+----------------------+
| 10 | 2 | 3 | 1 | |
+-----------------+-----------+----------+---------------+----------------------+




keep in mind:

1) productoptions.ProductID creates the relationship to the products.ProductID
2) productoptions.OptionsID creates the reelationship to the options.OptionsID
3) productoptions.OptionGroupID creates the relation to the optiongroups.OptionGroupID

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