1

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", formatter: "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?).

enter image description here

Is there any way to get rid of that number (maybe altering some hook?) or other way to list out all line item fields?

0

1 Answer 1

0

Solution to this problem is to create custom entity.tpl (Theme developer can suggest filename) and remove printing out entity title.

Your Answer

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

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