确定magento 1.6.2中两页之间的差异和变化 [英] Pinpointing the difference and changes made between two pages in magento 1.6.2

查看:131
本文介绍了确定magento 1.6.2中两页之间的差异和变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个页面应该使用完全相同的模板和布局。

I have two pages that should be using the exact same template and layout.

下面可以看到正确的项目布局。
http:// dokha .co / index.php / medwakh / custom-medwakh-from-white-horse-studios-13.html

The correct item layout can be seen below. http://dokha.co/index.php/medwakh/custom-medwakh-from-white-horse-studios-13.html

错误的项目布局如下。
http://dokha.co /index.php/shisha-tobacco/al-fakher-shisha-tobacco-1.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.

我很好奇,知道如果你能告诉我如何使第二个像第一个,紧凑的风格。我不知道在magento中可以进行什么修改,导致布局只能针对特定的项目显示出来,因为链接1中的类别中的项目只能以这种方式表现,我想知道如何使它们全部

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.

所以,view.phtml包含每个不同的模板。

So, view.phtml is including different templates in each.

不管怎样,在第二个例子中你看到的扩展空间的真正原因是由清除div引起的。只需删除它。

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.

您正在寻找的div是:

The div you are looking for is this:

<div class="clearer"></div>

,您将在 app / design / frontend / your_package / your_theme中找到它/template/catalog/product/view.phtml

这篇关于确定magento 1.6.2中两页之间的差异和变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆