0

I am building a shop with several types of custom cushions available. Each product (cushion shape) will have different options therefore i am using custom line items.

The issue is that to me it seems i need to create just as many different content types (product display) in order to reference the custom line item in the add to cart form of the Display?

There must be better way to do this?

1 Answer 1

1

Unfortunately there's not, you need a content type to match every line item type if you're dealing with different attribute fields. That was the original intention of Commerce custom product but it's at the point of providing different product types, but the feature hasn't been developed yet.

2
  • 1
    ok, sorry to hear that! Thank you for the answer. Do you have any suggestions to deal with several products?
    – petergus
    Jun 6, 2014 at 14:46
  • I'd go for commerce custom product and then figure out if you need different node types or not based in whether is easier to maintain some form alters that hide the options or different types. You could also expose things to taxonomies and other entities and use the Entity Reference (drupal.org/project/entityreference) plugin system to hide options based in views or other code. It really depends on your use case.
    – pcambra
    Jun 7, 2014 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.