customgento/module-default-store-code-remover-m2

Magento 2 默认店铺代码移除器隐藏默认店铺中的URL中的店铺代码。

支持包维护!
customgento

安装次数: 23,625

依赖项: 0

建议者: 0

安全性: 0

星标: 25

关注者: 5

分支: 4

开放问题: 0

类型:magento2-module

v1.0.5 2024-06-03 11:26 UTC

This package is auto-updated.

Last update: 2024-09-05 08:23:29 UTC


README

Magento 2 默认店铺代码移除器隐藏默认店铺中的URL中的店铺代码。该模块仅在启用 web/url/use_store 时生效,旨在用于多店铺设置,其中默认商店不应包含任何店铺代码,而所有其他商店则应包含。

安装

  • composer require customgento/module-default-store-code-remover-m2
  • bin/magento module:enable CustomGento_DefaultStoreCodeRemover
  • bin/magento setup:upgrade
  • bin/magento cache:flush
  • bin/magento setup:di:compile

示例

当URL中的店铺代码禁用时,商店的URL看起来像这样:https://website.com/

当URL中的店铺代码启用时,商店的URL看起来像这样:https://website.com/store_code/

当此扩展已安装并启用,且在“商店”>“配置”>“常规”>“Web”>“添加店铺代码”下启用显示店铺代码时,模块将不会显示默认店铺的店铺代码,但会显示任何其他店铺的代码。

因此,对于默认店铺,URL将是https://website.com/,而对于所有其他店铺,URL将是:https://website.com/store_code

许可证

OSL - 开源软件许可证 3.0

版权

© 2021 - 现在 CustomGento GmbH