跳到主要内容

托管文件过滤器

Hosted file filters 返回托管在 Shoplazza CDN 上的资源的 URL,包括在 Shoplazza 管理后台中上传的文件。

shoplaza_asset_url

string | shoplaza_asset_url
returns  string

返回主题 assets 目录中文件的 CDN URL。

{{ 'theme.css' | shoplaza_asset_url }}
//static.staticdj.com/themes/theme-589f053bba.css

add_root_url

string | add_root_url
returns  string

返回带有语言前缀的 URL。仅在当前店铺为语言店铺时有效。

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

delete_root_url

string | delete_root_url
returns  string

返回不含语言前缀的 URL。

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