php 如何更改magento电子商务的主题?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1031606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 00:43:01  来源:igfitidea点击:

how to change theme of magento e commerce?

phpmagentoconfigurationthemese-commerce

提问by Magento

how to change theme of magento e commerce ??

如何更改 magento 电子商务的主题?

回答by Magento

Go to admin >> system >> design >> and Add custom magento theme >> here you will see the theme which you have created in folder structure, just select and save the theme and then just delete or refresh the cache and refresh your web page, that's all.

转到管理>>系统>>设计>>并添加自定义magento主题>>在这里您将看到您在文件夹结构中创建的主题,只需选择并保存主题,然后删除或刷新缓存并刷新您的网页页,仅此而已。

回答by Colin Pickard

It looks a little fiddly, but I think this is the relevant section of the user guide:

它看起来有点繁琐,但我认为这是用户指南的相关部分:

Navigate to the Magento admin panel (ie.www.mydomain.com/admin), then the Design configuration tab (System -> Configuration -> Design tab).

  • In order to manage your store design in the website-level, select the name of your website from the dropdown, then apply the following steps.
  • In order to manage the design from the store view-level, select the name of your store view from the dropdown, then apply the following steps.

Step 1 From the Design tab, in Current package name, enter the name of the interface in which your new theme resides. Magento will automatically load the interface called ‘default' if this box is left blank.

Step 2 In Default (under Themes heading), enter the name of the new theme you'd like to load to your website/store. If you leave this box blank, Magento will automatically load only the theme called ‘default' (Remember, no matter how you configure the design tab, Magento will automatically load the theme called ‘default'. If you assign a theme in the admin, that theme will simply load higher up in hierarchy, but will load along with the theme ‘default'. This will change in the upcoming stable release however, to give you full control over what themes are loaded into the store). Should you choose to load the theme separately depending on file type (layout, templates, skin or translation files), enter the name of the theme from which to grab the according file types.

Step 3 When you're done, click the button “Save config” and reload your store – Voila! You now see your new theme reflected in the frontend.

导航到 Magento 管理面板(即 www.mydomain.com/admin),然后是设计配置选项卡(系统 -> 配置 -> 设计选项卡)。

  • 为了在网站级别管理您的商店设计,请从下拉列表中选择您的网站名称,然后应用以下步骤。
  • 为了从商店视图级别管理设计,请从下拉列表中选择商店视图的名称,然后应用以下步骤。

步骤 1 在“设计”选项卡的“当前包名称”中,输入新主题所在的界面名称。如果此框留空,Magento 将自动加载名为“default”的界面。

第 2 步在默认(在主题标题下),输入您要加载到您的网站/商店的新主题的名称。如果您将此框留空,Magento 将仅自动加载名为“default”的主题(请记住,无论您如何配置设计选项卡,Magento 都会自动加载名为“default”的主题。如果您在管理中分配主题,该主题将简单地在层次结构中加载更高,但将与主题“默认”一起加载。然而,这将在即将发布的稳定版本中改变,让您完全控制加载到商店中的主题)。如果您选择根据文件类型(布局、模板、皮肤或翻译文件)单独加载主题,请输入主题名称以从中获取相应的文件类型。

第 3 步完成后,单击“保存配置”按钮并重新加载您的商店 - 瞧!您现在可以在前端看到您的新主题。

回答by Swapna Taru

To change theme of magento ecommerce Go to admin -> system -> configuration select design and give your theme name. After doing above changes delete var/cache.

要更改 magento 电子商务的主题,请转到管理 -> 系统 -> 配置选择设计并提供您的主题名称。完成上述更改后,删除 var/cache。

回答by balexandre

it is nothing like Wordpress, I can assure of that!

它与Wordpress 完全不同,我可以保证!

I bought a book, called Magento 1.3. Theme Designand it helped me creating a new theme, as well understanding the bits that are put together in magento.

我买了一本书,叫Magento 1.3。主题设计,它帮助我创建了一个新主题,以及理解在 magento 中组合在一起的部分。

The book explains how to install themes, images, how things work as well it passes several chapters changing the Blank Themein order to be able to give the read a good approach to the Theme feature in Magento.

这本书解释了如何安装主题、图像、工作原理以及更改空白主题的几个章节,以便能够让阅读者更好地了解 Magento 中的主题功能。

Go to the Magento chat roomas well (WHAT? IRC? is that thing still alive??) you can find pretty good guys that can help you when you get to a wall, but don't expect that they will do everything for you.

也去Magento 聊天室(什么?IRC?那东西还活着吗??)你可以找到很好的人,当你碰壁时可以帮助你,但不要指望他们会为你做一切.

Hope it helps.

希望能帮助到你。