Although we *have* the add_form_submit_value as part of the line item info, it doesn't seem to have support in the actual code. The attached patch adds the support.

CommentFileSizeAuthor
commerce.add_form_submit_value_support.patch586 bytesrfay

Comments

rszrama’s picture

Title: Line item "add_form_submit_value" not supported » Allow per-product line item type Add to Cart form submit button value
Category: bug » feature
Status: Needs review » Active

Ahh, hmm, that's actually just an unfortunately named property on the line item type that predates the more robust functionality of the Add to Cart form to use various line item types. That property and the related callbacks are supposed to be restricted to the direct line item add form in the line item manager widget of the order edit form.

It might not be a bad idea to pursue line item type specific Add to Cart button text, but I think we'd need to do so in another property or a setting elsewhere.

jsacksick’s picture

Issue summary: View changes
Status: Active » Closed (outdated)