partner_id_from_sku_code

Retrieves a partner ID from a SKU code on a sku relation.

Example

1
{{ '123' | partner_id_from_sku_code: 'any', 0 }} => 123

Input

Type Parameter Description Required
string skuCode The code of the SKU. Comes before the | sign. Required
string relation The relation to check, defaults to ‘any’  
int delta The delta to check, defaults to 0  

Output

Type Description
mixed The partner ID or null if not found