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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Product Options implementation

Thread began 7/25/2010 3:34 pm by victor405909 | Last modified 9/15/2010 2:14 pm by victor405909 | 1757 views | 26 replies

CraigRBeta Tester

I am not suggesting this is the definitive way to do it, but it works for me.

The key is in the planning.
If you plan well, it can save a lot of work later.

Based on my earlier example, you could have your prices stored in your size table, but a more flexible approach is to have a price table.

For size based pricing, your table would be something like this

PriceID ProductID SizeID Price
1 1 1 10
2 1 2 12


For size and colour based pricing, you would need add a colour table, similar to your size table. In this instance, your price table could look like this...

PriceID(PK) ProductID SizeID ColourID Price
1 1 1 1 10
2 1 1 2 12
3 1 2 1 10
4 1 2 2 13


For each additional option, you would need to add an option table to your database, with productID and optionID, and an extra column to the price table.
This means more work in setting up, but more flexibility.
So if you wanted, for example, to have xxl t shirts at a price different to other size t shirts, you could do this with size based pricing.
If you wanted to put red xxl t shirts at a price different to other size and colour t shirts, you could do this with size and colour based pricing.

Being practical, 2 or 3 options is probably as complicated as you need.

All of the above also involves a bit more php coding, but the database principles outlined above (i hope) are sound.

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