I have recently noticed that the node order in Drupal commerce is showing the full products with various details - images, price, stock numbers etc. This makes it hard for shop admins to reorder the products at will. I have a dev version that is a couple of months old where this is not happening. The settings are the same. The module version is the same. The extra content seems to be within an tag in the html but I cant work out how to remove this and go back to just a draggable title. The title is there although hidden with 'element-invisible'.

Any ideas?

CommentFileSizeAuthor
#4 nodeorder-remove-extra-content-from-tpl-2828141-4.patch488 bytesjbloomfield
#2 Screen Shot 2016-11-16 at 16.35.30.png41.6 KBAnonymous (not verified)
#2 Screen Shot 2016-11-16 at 16.34.02.png39.57 KBAnonymous (not verified)

Comments

Anonymous’s picture

olomouc created an issue. See original summary.

Anonymous’s picture

jbloomfield’s picture

It looks as though this is caused in the template file provided with the module. If you override this and remove the

print render($content);

then it should only display the title of the node.

jbloomfield’s picture

Adding a patch to remove the extra content output, if users want to add any extra content, they can override the template. We have a complex admin theme setup whcih makes it harder to override this template, so I believe the title is sufficient.

qudec’s picture

Status: Active » Reviewed & tested by the community

Patch tested and working, I'm in the same situation as #4.

davps’s picture

Assigned: Unassigned » davps
Status: Reviewed & tested by the community » Needs work

@qudec thank you for confirmation and testing.

I don't sure that removing extra content from output is a best solution. Need to think about other cases.

vrajak@gmail.com’s picture

Anyway to get a nodes image to print here? I've tried a variety of ways as per the modules template instructions but no go.

avpaderno’s picture

Assigned: davps » Unassigned
Issue tags: -