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

rating

PS4 - database design

Thread began 2/20/2011 11:13 am by biz295654 | Last modified 3/01/2011 10:47 am by Jason Byrnes | 1641 views | 7 replies |

biz295654

PS4 - database design

I am trying to understand the db design for the store. I am replacing an older store (hand rolled, ancient) with PS4, so am trying to understand structure for the easiest migration.

In my older design, I had a table for color and one for sizes. Then in each product, I had a color_ID and a size_ID, and just applied it for each product, with 1 for each entry that applied.

However, in studying PS4 set up, it uses Options but each product has it's own set of options, but not tied to an optionID. So in my testing, I end up with OptionId 5 = Medium as well as OptionID 14 = Medium.

I'd much rather have each product have keys for medium, large etc. but I'm guessing that would be a major rewrite of product pages.

Or am I totally off the mark with database design principals?

Any comments, most appreciated.

Thanks

PS: If I added optionID to the products, what would I need to do to the product detail pages to pull in that information?

Sign in to reply to this post

Jason ByrnesWebAssist

options in power store use 3 tables:
ps4_optionsgroups - this defines option groups like Size or color

ps4_options - this defiles the options like medium of red - the ps4_options.OptionGroupID relates the option to the ps4_optiongroups.OptionGroupID column

ps_productoptions - this is a linking table to relate products to the options. the ps_productoptions.ProductID column relates to the products.productID column. the ps_productoptions.OptionID relates to the ps4_options.OptionID column

Sign in to reply to this post

biz295654

Thank you, I'll dig deeper.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

biz295654

In the productoptions, where is the GroupingID coming from?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the productoptions.GroupingID column relates to the optiongroups.GroupID column

Sign in to reply to this post

biz295654

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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