sku_id_from_ean
Get sku id from SKU fixed box ean
Example
1
{{ '123' | sku_id_from_ean, 'box_unit', 'sales' }} => id of sku
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | ean | The code of the SKU. Comes before the | sign. | Required |
| string | eanType | The type of the ean number. Either box_unit, uom or parcel | |
| string | permission | The permission that should be available on the Sku. Defaults to sales. |
Output
| Type | Description |
|---|---|
| mixed | The ID of the SKU or null if not found |