【问题标题】:Magento layout and positionsMagento 布局和位置
【发布时间】:2013-07-13 23:45:45
【问题描述】:

我正在尝试重新设计一些 magento,所以我有点困惑,关于两件事:

  1. 如何将比较产品块添加到左列(我必须添加的位置和内容),例如我使用 2columns-left 并且在左列没有那个块..
  2. 如何更改产品页面上元素的位置例如,我希望我的产品图片放在右侧,图片下方的简短描述,我很困惑,在哪里查找,什么文件,什么代码,要更改位置?

-我知道我可以使用 css 定位,但它很乱而且不太好。 :/

谢谢。

【问题讨论】:

    标签: css magento layout compare php


    【解决方案1】:

    正如你在这里提出的这两点。

    1.比较产品app/design/frontend/{interface}/{theme}/layout/catalog.xml。 移动这一行

    <block type="catalog/product_compare_sidebar" before="cart_sidebar" 
    name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
    

    从标签‘’内到标签‘’内 清除缓存就完成了。

    2.要检查您的文件或块的来源,只需执行此步骤,然后您就可以更改您的 magento 项目中的布局或位置或产品

    goto->admin->system->configuration->Current Configuration Scope(left side)->select main website->Debug(right tab)->Template Path Hints ->select yes->refresh home page 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-30
      • 2018-08-25
      • 2011-04-28
      • 2013-04-22
      • 1970-01-01
      相关资源
      最近更新 更多