sku_id_from_sku_code_auto_create

Get sku id from SKU code

Example

1
{{ '123' | sku_id_from_sku_code_auto_create }} => 123

Input

Type Parameter Description Required
string skuCode The code of the SKU. Comes before the | sign. Required
string name The name of the SKU, defaults to ‘AUTO CREATED’  
bool traceable Whether the SKU is traceable, defaults to true  
string lotUnit The unit of measure for the lot, defaults to ‘pcs’  
string uom The unit of measure, defaults to ‘pcs’  
float uomConversion The conversion factor from the lot unit to the uom, defaults to 1  

Output

Type Description
mixed The ID of the SKU or null if not found