Magento documentation

Magento template installation

首先,请确保您的Magento安装版本符合模板要求. 如果您使用的是过时版本的Magento,则需要升级它. 别忘了备份文件和数据库. Magento升级说明可在 Magento Wiki website.

如果Magento引擎满足模板要求,可以开始安装模板.

  1. 打开模板包,进入 theme### folder.
  2. Upload theme### 文件夹内容到Magento安装目录(上传)app", "skin" and other folders). 这些文件夹包含主题文件. 它们不会影响您现有的文件.

Template configuration

我们将根据示例回顾模板配置选项. 它的配置方式与我们的Live Demo模板相同,不会影响产品数据.

Activate the new template

  1. 打开Magento管理面板并导航到 System > Design in the top menu.
  2. Click the "Add Design Change" button.
  3. In the "Custom Design字段,选择主题名称(例如,theme###). Click the "Save按钮以确认更改.

Reindex data

  1. 打开Magento管理面板并选择 System > Index Management in the top menu.
  2. Check the "Select All" box in the top left corner.
  3. In the "Actions" field select "Reindex Data".
  4. Click the "Submit" button.
  5. 请耐心点,这可能需要一段时间.

Disable cache

为了使更改立即出现在您的网站上,您需要禁用缓存. 它可以防止在每次更改后进行额外的缓存清除操作. 您可以在完成存储编辑后启用它.

  1. 打开Magento管理面板并导航到 System > Cache Management in the top menu.
  2. 在左上角点击"Select All".
  3. On the right side, in the "Actions" field select "Disable".
  4. Click "Submit" button.

Logo configuration.

在设置包含在主题包中的徽标图像时,请遵循以下步骤(您可以在Live Demo页面上查看它).

  1. 打开Magento管理面板并选择 System > Configuration in the top menu.
  2. Select the "Design" tab.
  3. In the "Header" section, edit the "Logo Image Src" field value. Change it from "gif" to "png".
  4. Click "Save Config" button.

为了安装您的公司徽标,您需要将徽标图像文件上传到 /images folder of your Magento theme.

Pages configuration

为了使你的模板看起来完全像我们的现场演示, 您需要以特定的方式设置商店页面. 我们提供了所有的文件与页面的源代码. 您需要按照下面使用设置表的说明将它们添加到Magento管理面板中. 设置表位于 Technical details 页面上的模板预览页. 文档文件包含到该页面的链接:

  • Documentation
    • documentation.html

受影响最大的是主模板页. 它通常包含以下元素:横幅、滑块、图库等.

我们建议禁用WYSIWYG编辑器. To do this, select System > Configuration from the admin top menu. Open the "Content Management" section and in the WYSIWYG Options window set "Enable WYSIWYG Editor" option to "Disabled Completely".

如果您已经对您的页面代码进行了更改,并希望添加我们的代码而不影响更改, 建议在修改前联系专业技术人员或准备备份文件.

  1. From the top menu select CMS > Pages. 在这里你可以找到所有的商店页面. Home page, About Us and Customer Service 应该已经可用,所以您不需要添加它们. 您只需要更新页面的HTML和XML内容. 打开它们中的任何一个,以便访问内容.
  2. Open the page and select the Content tab. 它包含页面的HTML代码. 您可以从适当的源文件中获取页面HTML代码. 您可以在模板预览页面的“模板设置”部分中看到源文件列表. 从源文件复制代码并将其粘贴到 content area.
  3. 完成HTML代码后,切换到 "Design" tab. It contains the page XML code. XML代码允许您向页面添加Magento静态块和小部件. 应该像从源文件复制HTML一样复制XML代码. Copy the XML code to the "Layout Update XML" area.
  4. 不要忘记选择有效的Layout" option.
  5. 如果需要添加新页面,请单击 "Add New Page" 按钮在右上角.

如果您有任何困难,请查看详细的教程 如何手动配置页面.

Static blocks configuration

在完成页面配置后,需要配置静态块. 过程类似:您需要从源文件中复制代码,并将其粘贴到Magento管理面板中的相应字段中. 您需要使用一个类似的表,但用于静态块.

  1. From the top menu select CMS > Static Blocks.
  2. 点击右上角的“添加新块”按钮添加新块.
  3. 输入块名称和标识符. 您可以从模板Live Demo页面的表格中获得块的详细信息(检查Pages Configuration部分).
  4. 打开块源文件并将HTML代码复制到内容区域.

请注意:有些模板不包含任何静态块,因此表可以为空.

包含静态块代码的源文件存储在sources\demo\static_blocks\模板包所在目录.

如何显示我们的块与静态内容?

  1. Go to CMS > Widgets in top menu.
  2. Click the Add New Widget Instance 按钮,以添加小部件.
  3. Specify the widget type CMS > Static Blocks 和您想要应用小部件的主题,然后单击Continue button.
  4. On the next page, in the Widget Instance Title 字段,输入将显示在管理面板中的小部件的名称. In the Assign to Store Views 字段,您需要选择将显示小部件的存储视图. In the Layout Updates block click the Add Layout Update button. In the Display On 字段,您可以选择显示小部件的页面. 根据所选页面,您将有机会填写其他字段.
  5. Select the Widget Options 选项卡,并选择您所引用的静态块. Do not forget to save changes.

当您完成了存储页面和块的配置后,您的存储就可以使用了.