Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2013 at 10:34 UTC
Updated:
31 May 2013 at 14:30 UTC
This is good work, thanks to the maintainers
can we have a settings page for the SKU where we can select which fields from the referenced and node/entity can be called in to the form. instead of hard coding
Comments
Comment #1
bojanz commentedYou want to configure how the SKU is generated?
That is done by Commerce AutoSKU, which has its own configuration (you can configure that when editing the product variation type).
Comment #2
kaizerking commentedThat is if one want to use Drupal commerce
I do not want to use drupal commerce but a field from my own referenced node/entity and my custom field created using unit of measure as SKU
Comment #3
kaizerking commentedComment #4
bojanz commentedOnly Commerce Products have skus. I have no idea what you're asking. Are you referring to the Title generation perhaps? (which is also commerce product specific)
Comment #5
bojanz commentedNo reply for a month.
Comment #6
kaizerking commentedmy explanation is crystal clear at #2.
why only commerce sku?
why not any field/fields from referenced entity?
there are two use cases for this:
Use case 1.UOM of the poduct
site builders should be able to select the content type and the field/fields to be used.that is,it is just a matter of displaying the other field values of the referenced entity a pat from title,where user will be able to see the unit of measure(as you call it SKU).
there is difference in SKU and Unit of measure.
SKU may not be salable unit.i.e a retail store may purchase in kilo grams but sell in sachets.
Use case 2. vendor currency:
I have a content type Vendor, where we create a vendor and the currency the vendor will deal in.
if I create a PO,it will always have reference to vendor, when I select the vendor from the select list, I also want to see the currency field attached to vendor displayed.
Basic cart has similar function where you can select in config where we can select content type should be used as product for "price" field. when you select the content type a "price" field is created if not existing, if existing the field value will be used to calculate.
I am going towards something like this Grider, but ajxified
I hope this clarifies.
Let me know if additional info is needed.
Comment #7
bojanz commentedWell, it might be crystal clear to you :P
I still don't completely understand what you're trying to do, but it seems that you want to show fields from a referenced entity in a entityreference autocomplete, or some other context of the parent entity? Non of which is handled by IEF.
If it might be about autogenerating fields of children entities based on parent fields, then that's a job for a new contrib module
(just like IEF usues Commerce AutoSKU for the SKU, and soon Automatic Entity Label for labels)