Shopify helper functions

You can use the helper functions listed below when developing templates for use with our Shopify connector.

$sanitizeId

Returns a sanitized Shopify ID field, removing the default Shopify prefix.

Template compatibility: All

Input

A string

Examples

$sanitizeId('gid://shopify/Product/123456')
=> '123456'