Jump to content

which way is correct


isaac_cm

Recommended Posts

Hello,

I have to in my site related product options size and available colors , I destined my admin panel so I can enter all attributes once ex:

 

A) options

---------

10 - Red

10 - Blue

10 - White

12 - Red

12 - Blue

14 - White

 

then select from previous options to assign to some product , the problem that is that way correct or I have to make the options unrelated like that

 

B) options

---------

10

12

14

Red

Blue

White

 

then when I select option I use "UNION SELECT" to combine the options together to get the result like options (B) , if I have to use this pattern I will need advice on the SQL I should use

 

also if I virtually combine all the options how I prevent the user from deleting option "10" (B) because there is a product has this size like that "10 - Blue" assigned to it

 

I need to make the options related so only available color appear to specific size

 

Thanks

Link to comment
Share on other sites

Thanks but I want more generic way I dont want to make a table for size I want to give the ability to define whatever options, every option values and the relation between every option (parent/child)

 

for example:

table "options"

-------------

size

color

style

 

table "option_values"

--------------------

10

12

14

Red

Blue

Green

 

table "product_options"

------------------------

size

coloe (child of ) size

 

 

Any idea ?

Link to comment
Share on other sites

I did that , but the problem is I saw some CMS software admin panel and they handle options in a very complex way

 

they first store every unique options and then the result options generated is a multiplication of all possible options , so do you think they are right ?

 

but most of CMS uses the options independent of each others

 

Thanks

Link to comment
Share on other sites

I did that , but the problem is I saw some CMS software admin panel and they handle options in a very complex way

 

they first store every unique options and then the result options generated is a multiplication of all possible options , so do you think they are right ?

 

but most of CMS uses the options independent of each others

 

Thanks

 

So What?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.