close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

database setup where price depends on size and color,style are options.

Thread began 4/14/2010 9:12 pm by sologray | Last modified 12/11/2013 10:16 pm by sologray | 8171 views | 12 replies

sologray

Jason,

I think it will not work as suggested because if we take the samples:

ProductOptionsID | ProductID | OptionID | OptionGroupID | OptionPriceIncrement
1 | 1 | 2 | 1 | 0

the example above uses:
productID 1 which is wefted hair.
OptionID 2 which is Dark Brown
OptionGroupID 1 which is color
OptionPriceIncrement 0

ProductOptionsID | ProductID | OptionID | OptionGroupID | OptionPriceIncrement
2 | 2 | 7 | 2 | 5.95


the example above uses:
productID 2 which is prebonded hair
OptionID 7 which is 14 inch
OptionGroupID 2 which is size
OptionPriceIncrement 5.95 This will be added to the base price set in the product table.


for the first sample: 1 | 1 | 2 | 1 | 0 style is unknown
for the second sample : 2 | 2 | 7 | 2 | 5.95 color and style is unknown.

I have tried to fill the PRODUCTOPTIONS and could not get all the combinations.
Also on a related matter, the PRODUCTSTOCK column in the product table can't differentiate stock-wise a wefted hair,dark brown, 12", loose wave " from say
wefted hair,dark brown, 14", straight. They should not be the same product if we need to keep inventory AVAILABLE/NOT AVAILABLE.

It seems if we could manage to have a table like PRODUCTSOPTIONS to list all the combinations of productsID and options in one record(row) , we could add PRODUCTSTOCK column
there.
or may be I am missing something?

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