Magento 2在管理静态块/页面中获取基本URL(当前存储)?


Answers:


39

您可以在静态块中添加当前商店URL。

{{store url=""}}

如果要添加带有类别URL的商店URL。

{{store url="category-url"}}

2

您可以在静态块中添加商店网址:

<a href="{{store direct_url='identifier'}}">Your link</a>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.