Link between Collection and Attribute Category
Permalink
Ok, I'm stuck with this one. Hopefully some of you have an idea how to tackle this problem!
I have a custom attribute category (say 'Option') with a few properties (e.g. 'price' and 'is_required').
Now I want to connect a Collection with an Attribute Category. I guess the best way would be to create an attribute type, right? So:
- collection_id
- option_id
This would probably become something like $page->setAttribute('option', 4);
Ok, so far, so good.
But now I want a link like this:
- collection_id
- option_id
- value
So a custom attribute type that consists of a checkbox + value.
[x] [_____]
[x] [_____]
[ ] [_____]
Is this the way to go, or are there better solutions?
I have a custom attribute category (say 'Option') with a few properties (e.g. 'price' and 'is_required').
Now I want to connect a Collection with an Attribute Category. I guess the best way would be to create an attribute type, right? So:
- collection_id
- option_id
This would probably become something like $page->setAttribute('option', 4);
Ok, so far, so good.
But now I want a link like this:
- collection_id
- option_id
- value
So a custom attribute type that consists of a checkbox + value.
[x] [_____]
[x] [_____]
[ ] [_____]
Is this the way to go, or are there better solutions?
So in the end:
Collection
Option
CollectionOption