Shopware 6 empty theme



我目前正在探索Shopware 6。我来自WooCommerce,所以我很难理解每件事。

据我所知,自定义主题,你总是从正常的Shopware主题继承?

我想创建一个完全空的主题,但这是不可能的,我猜?我被困与Shopware样式加载在我的页面?即使我想做一个完全不同的设计?

谁能给我解释清楚一点吗?正如我所说的,我来自WooCommerce,所以我习惯了一个父主题是你可以清空的东西,如果它是你自己的,没有收到更新。

据我所知,使用自定义主题,您总是继承正常的Shopware主题?

{
"name": "SwagBasicExampleTheme",
"author": "Shopware AG",
"views": [
"@Storefront",
"@Plugins",
"@SwagBasicExampleTheme"
],
"style": [
"app/storefront/src/scss/overrides.scss",
"@Storefront",
"app/storefront/src/scss/base.scss"
],
"script": [
"@Storefront",
"app/storefront/dist/storefront/js/swag-basic-example-theme.js"
],
"asset": [
"@Storefront",
"app/storefront/src/assets"
],
"configInheritance": [
"@Storefront",
"@OtherTheme"
]
}

这是一个示例主题配置,Shopware建议在默认主题(Storefront)上构建,但您可以自己决定。例如,如果你不想从默认的shopware主题继承样式,你可以从style中删除@Storefront,并对javascript或视图做同样的事情…

您可以从文档https://developer.shopware.com/docs/guides/plugins/themes/theme-configuration获得更多详细信息

我想创建完全空的主题没有什么,但这是不可能的,我猜?我被困与Shopware样式加载在我的页面?即使我想做一个完全不同的设计?

这是有可能的。如上所述。

谁能给我解释清楚一点吗?正如我所说的,我来自WooCommerce,所以我习惯了一个父主题是你可以清空的东西,如果它是你自己的,没有收到更新。

Shopware也有相同的。可以从现有主题创建子主题。这是文档https://developer.shopware.com/docs/guides/plugins/themes/add-theme-inheritance#extending-an-existing-theme-with-a-new-theme

最新更新