问题描述
我有两个页面应该使用完全相同的模板和布局.
正确的项目布局可以在下面看到.
http://dokha.co/index .
不正确的项目布局在下面.
http://dokha.co/index.php/shisha-tobacco/al-fakher-shisha-tobacco-1.html
正如您在第一个图像中看到的那样,项目的布局紧凑.在第二个链接中,它被绘制出来.
我很想知道您是否可以告诉我如何像第一个一样,即紧凑的样式.我不确定在Magento中可以进行哪些修改,以使布局仅显示特定项目,因为只有链接1中的类别以这种方式表现出来,我想知道如何使它们全部使它们全部以这种方式行事.
推荐答案
好的,第一件事:布局略有不同,因为在第一个示例中,您有简单的产品,在第二个示例中,您有可配置的产品.
so,view.phtml都包含每个模板.
无论如何,您在第二个示例中看到的扩展空间的实际罪魁祸首是由清算div引起的.只需删除它.
您要寻找的DIV是:
<div class="clearer"></div>
您会在app/design/frontend/your_package/your_theme/template/catalog/product/view.phtml
中找到它问题描述
I have two pages that should be using the exact same template and layout.
The correct item layout can be seen below. http://dokha.co/index.php/medwakh/custom-medwakh-from-white-horse-studios-13.html
The incorrect item layout is below. http://dokha.co/index.php/shisha-tobacco/al-fakher-shisha-tobacco-1.html
As you can see in the first image the layout of the item is compact. In the second link it is all drawn out.
I am curious to know if you can tell me how to make the second one like the first one, The compact style. I am not sure what modifications could have been made in magento to cause the layout to only show up that way for specific items, as only the items in the category on link 1 behave that way, I would like to know how to make them all behave this way.
推荐答案
Ok, first thing: the layouts are slightly different because in the first example, you have simple product and in the second example you have a configurable product.
So, view.phtml is including different templates in each.
Regardless though, the actually culprit of the expanded space you are seeing in the second example is being caused by a clearing div. Simply remove it.
The div you are looking for is this:
<div class="clearer"></div>
and you will find it in app/design/frontend/your_package/your_theme/template/catalog/product/view.phtml