On products with lots of fields (20+) the save button doesn't always display at the bottom of the page. Here's a patch to set the weight of the save, and status buttons very heavy, so it displays in a consistent location on the page.

This could be a bit of a hack, but I don't know of a better way to do this, other than to simply have a theme function to place it on the bottom of the form, or some sort of form_alter to modify the form field weight. Neither of those seem like good solutions either. Here's a patch for the simple way

Comments

rfay’s picture

Title: product save button consistincy » Product save button consistency

Sorry, couldn't help myself.

mikejoconnor’s picture

StatusFileSize
new611 bytes

After a more through review, I don't believe the patch above will fix the problem.
The issue is actually caused by the weight of the status field, in reference to the product save buttons. If you add form fields, without re-ordering them, the 5th or 6th field will show up under the product action buttons.

Here's a new patch, which leaves the product status at the same weight(it can be reordered anyway), but moves the action buttons to the bottom of the page(assuming you have less than 965 fields on your product.

rfay’s picture

Makes sense to me. I don't know what harm it can do.

rszrama’s picture

Status: Needs review » Fixed

Committed. Thought about just removing status from hook_field_extra_fields() but left it in for now.

Status: Fixed » Closed (fixed)

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