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

bojanz’s picture

Category: feature » support
Status: Active » Fixed

You 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).

kaizerking’s picture

That 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

kaizerking’s picture

Status: Fixed » Active
bojanz’s picture

Only 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)

bojanz’s picture

Status: Active » Fixed

No reply for a month.

kaizerking’s picture

my 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.

bojanz’s picture

Well, 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)

Status: Fixed » Closed (fixed)

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