In node view of a product, the weight never shows, since it's using '#weight' instead of '#amount'.

This patch fixes it.

I note that you're using bare attributes on the node object, like $node->weight. That seems pretty questionable to me, as they're not in any way organized and can easily conflict with attributes added by other modules. Especially weight!

CommentFileSizeAuthor
ubercart.weight_doesnt_render.patch463 bytesrfay

Comments

longwave’s picture

Status: Needs review » Fixed

Committed, thanks.

longwave’s picture

Also, the $node properties are a long standing design that has held since D5, and in the current release cycle there is unlikely to be time to upgrade them to fields - but that is obviously something I'd like to see in the future if possible.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.