People where confused about the fact that there is no useful information around the SKU that is auto generated. Especially for site builders its important to know what the SKU might look like. It would be ideal if we can provide the actual SKU, if not I would love if we could at least provide the token that is used.

autogenerated-token.png

CommentFileSizeAuthor
#8 autosku pattern24.54 KBtheo_
autogenerated-token.png100.22 KBBojhan

Comments

guguss’s picture

Assigned: Unassigned » theo_

I'm not sure if it's autoSKU or Inline Entity Form module related. The issue needs to be created to the correct queue and a patch should be applied.

The correct pattern should ideally be : "Will be auto-generated as follow [TOKEN]."

bojanz’s picture

The token used is the node title.
That's why it is generated on main form save, when you save just the product form the node title might not be entered yet.

So, the message would look like:
"Will be auto-generated from: [node:title]"
Is that fine, Bojhan?

Bojhan’s picture

I thought its based on variation information? [node:title] is a little ambiguous, gives as little information as we do now.

bojanz’s picture

No, sorry, I was wrong, it's based on PRODUCT title. But the product title is node title + all product attributes.
That's why it's only a single token, to avoid duplicating the attributes.

guguss’s picture

Priority: Normal » Major
theo_’s picture

Status: Active » Needs review

Here is the patch on the inline entity form, to display the pattern used when generating the sku.

#1698628: Display AutoSKU used pattern

https://code.drupalcommerce.org/207

Bojhan’s picture

Can you screen, what this turns into?

theo_’s picture

StatusFileSize
new24.54 KB

Actually it look like this :

autosku pattern

jsacksick’s picture

Status: Needs review » Closed (duplicate)

Let's continue the discussion here #1698628: Display AutoSKU used pattern.