Proper way to display custom line item fields on checkout form
Hi!
Is there any proper way to display custom line item fields on checkout form?
I know that I can add each custom field one by one into views but it's complicated when I have few line items with dozen conditional fields and you need always to remember about it.
I found out that I can add to checkout view "Rendered Commerce Line item", formater: "render complete entity" and choose necessary fields by adding custom view mode by hook_entity_info_alter. That's great with one little problem. It's always rendering number before my fields (it's line item id?).
http://screenshooter.net/100249231/qyrlcyx
Is there any way to get rid of that number (maybe altering some hook?) or other way to list out all line item fields?
Comments
But that is not the problem. I looking for a way to just display all line item fields on checkout view (without ability to edit them).
I figured out that I can use views field "Rendered Commerce Line item" but it also prints out line item id (title?). Check out screenshot: http://screenshooter.net/100249231/qyrlcyx