Hello,
I have been going through Commerce videos to get a feel for the current state of handling dependent products or addons (they currently seem to be handled as line items):
http://www.drupalcommerce.org/videos/tutorials/customizable-products-piz...
And I think the idea of a dependent product is somewhat better and more user friendly than the line item approach in the videos. So, lets stick with pizza.
Steps:
1.. create pizza and its toppings as separate products
2. for toppings set a product reference field for a pizza or a term reference for pizza category, (my product entity has a reference field to other products called dependent)
Once this structure is set, we can
3. implement rules to make sure that a topping is only selected with a pizza etc.
4. show dependent products indented in the Cart.
What do you think? I believe this is a very simple and straightforward idea.
Comments
Comment #1
giorgio79 commentedLooks like this has been thought of before for UC, somewhat reassuring :) http://drupal.org/project/uc_product_dependencies
Comment #2
T.Mardi commentedI like your idea Giorgio. Did you implement this with Commerce and Rules ok?
If so, could you provide a export of the Rule you used or brief instructions on how to set this up?
Thank you.
Comment #2.0
T.Mardi commentedcalrifz
Comment #3
bojanz commentedhttps://www.drupal.org/project/commerce_pado
Comment #4
duncan.moo commentedCommerce Product Add-On looks like just the thing, for Drupal 7.
@bojanz I have been looking for a couple of days for an equivalent in Drupal 8, or a way to configure rules or order item types... Anyone know if
A. this is possible in D8 Commerce 2 and if there is a tutorial somewhere that might help?
B. is there another module as I see that Commerce Product Add-On does not even have a D8 branch.
Thanks
Comment #5
bojanz commented@duncan.moo
There is no D8 equivalent yet. You will need to write or sponsor the D8 port yourself, or wait for someone else to do it or sponsor it.