Hosted File

Hosted file filters return URLs for assets hosted on the Shoplazza CDN, including files uploaded in the Shoplazza admin.


string | shoplaza_asset_url
returns  string

Returns the CDN URL for a file in the assets directory of a theme.

{{ 'theme.css' | shoplaza_asset_url }}


string | add_root_url
returns  string

Return the URL with a language prefix. It is valid only if the current store is a language store.

{{ '/api/cart' | add_root_url }}


string | delete_root_url
returns  string

Return the URL without a language prefix.

{{ '/kr/api/cart' | delete_root_url }}