Tags/topics: 
1
Answers
Vote up!
1
Vote down!

Add custom profile field as add-to-cart attribute?

I have a custom profile field on my site that is a multiple value text field (5 values max) where users can enter their kids names. I want to add these to the add to cart form as checkbox attributes (so the customer can choose what kids to apply the product to upon purchase) is there any way of doing this? I tried adding it to the line item via use of an entity reference view but it only returns one row as the user entity.

Any ideas of alternative approaches are greatly appreciated, thanks!

Asked by: Tom Gee
on September 1, 2014

1 Answer

Vote up!
0
Vote down!

entityreference fields can use a Views result as a reference point. If you're seeing only one result, you might be experiencing the "Entity Reference Views with Users produces one result" bug: https://www.drupal.org/node/1688332

Josh

Josh Miller
Answer by: Josh Miller
Posted: Sep 5, 2014