Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.0-rc1
Component:
Line item
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2011 at 03:18 UTC
Updated:
13 Nov 2011 at 20:20 UTC
I'm currently writing a rule to process line items in a cart and create "administrative nodes" for some purchased products. These created nodes need to be able reference a line item. Similarly to how you can reference a product and hide the widget, I'd like to be able to do the same for a line item.
An attached patch which simply replicates the hidden widget for product reference to line item.
Add the helpful hint on the widget form, though I didn't think it was so needed as the widget itself is self explanatory.
Allows developers to select a line item widget to now display on edit forms.
| Comment | File | Size | Author |
|---|---|---|---|
| hidden-line-item-widget.patch | 1.04 KB | josh waihi |
Comments
Comment #1
rszrama commentedI've committed your patch but renamed the widget commerce_line_item_reference_hidden to better match what we have for the product reference field. I also changed the comments to match the widget type.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/7751e80
Comment #2
damien tournoud commentedAlso see field_extrawidgets for this. I would nearly recommend rolling this back.
Comment #3
rszrama commentedAhh, hmm. Well, we can roll this back and recommend that for line item types, but we still have the hidden widget for product reference fields, too... is it even possible to have an upgrade path across field modules?