在产品评论块结帐Magento桌头柱 [英] Magento table head colums in product review block checkout

查看:118
本文介绍了在产品评论块结帐Magento桌头柱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有没有人在Magento的结账页面的reivew / info.phtml模板中遇到过这个奇怪的问题。我在源代码中有5个表头标题,分别是项目,描述,价格,数量和小计:

 < thead> 
< tr>
< th><?php echo $ this-> __('Item')?>< / th>
< th class =a-center><?php echo $ this-> __('Description')?>< / th>
< th class =a-center><?php echo $ this-> __('Price')?>< / th>
< th class =a-center><?php echo $ this-> __('Qty')?>< / th>
< th class =a-center><?php echo $ this-> __('Subtotal')?>< / th>
< / tr>
< / thead>

但是当我查看我的结帐页时,第二个消失。我检查了元素,也许它只是通过CSS隐藏,但事实并非如此。正如截图所示,我的结帐产品评价块中只显示4个标题: http://i.imgur .com / kbEP29Z.png

正如您可能已经注意到的,描述标题已经消失。但是,当我将价格移动到物品下方时,例如像这样:

 < thead> 
< tr>
< th><?php echo $ this-> __('Item')?>< / th>
< th class =a-center><?php echo $ this-> __('Price')?>< / th>
< th class =a-center><?php echo $ this-> __('Description')?>< / th>
< th class =a-center><?php echo $ this-> __('Qty')?>< / th>
< th class =a-center><?php echo $ this-> __('Subtotal')?>< / th>
< / tr>
< / thead>

说明列将突然显示,价格列将消失。奇怪,但是,这真的很奇怪。有些东西会阻止第二列显示,我不知道它是什么。



我希望这里的某位Magento专家能够告诉我如何显示第二个列



更新:与此同时,我做到了这一点:

 < th><?php echo $ this-> __('Item')?>< / th> 
< th>< / th>
< th class =a-center><?php echo $ this-> __('Price')?>< / th>
< th class =a-center><?php echo $ this-> __('Description')?>< / th>
< th class =a-center><?php echo $ this-> __('Qty')?>< / th>
< th class =a-center><?php echo $ this-> __('Subtotal')?>< / th>

注意物品后面的空白。这不会显示在HTML输出中,因为它在第二列(我不知道它为什么不显示)。现在一切都显示正常。第一,第三,第四,第五和第六列。哈哈哈......奇怪...... O_O

解决方案

没关系,我已经在第一次之后的另一次解决了。我仍然不知道它没有出现,但至少现在已经解决了。 O_O



与此同时,我这样做了:

 < th><?php echo $ this-> __('Item')?>< / th> 
< th>< / th>
< th class =a-center><?php echo $ this-> __('Price')?>< / th>
< th class =a-center><?php echo $ this-> __('Description')?>< / th>
< th class =a-center><?php echo $ this-> __('Qty')?>< / th>
< th class =a-center><?php echo $ this-> __('Subtotal')?>< / th>

注意物品后面的空白。这不会显示在HTML输出中,因为它在第二列(我不知道它为什么不显示)。现在一切都显示正常。第一,第三,第四,第五和第六列。哈哈哈......奇怪...... O__O

Has anyone here encountered this strange problem in the reivew/info.phtml template of Magento's checkout page. I have 5 table head titles in the source code namely items, description, price, quantity and subtotal:

<thead>
        <tr>
            <th><?php echo $this->__('Item') ?></th>  
            <th class="a-center"><?php echo $this->__('Description') ?></th>           
            <th class="a-center"><?php echo $this->__('Price') ?></th>
            <th class="a-center"><?php echo $this->__('Qty') ?></th>
            <th class="a-center"><?php echo $this->__('Subtotal') ?></th>
        </tr>
    </thead>

But when I view my checkout page, the second th disappears. I inspected the element, maybe it was just hidden via CSS, but it isn't. Only 4 th titles appear in my checkout product reviews block, as seen in the screenshot: http://i.imgur.com/kbEP29Z.png

As you may have noticed, the description title is gone. But here's the catch, when I move the price right below the item, for instance like this:

   <thead>
        <tr>
            <th><?php echo $this->__('Item') ?></th>  
            <th class="a-center"><?php echo $this->__('Price') ?></th>
            <th class="a-center"><?php echo $this->__('Description') ?></th>           
            <th class="a-center"><?php echo $this->__('Qty') ?></th>
            <th class="a-center"><?php echo $this->__('Subtotal') ?></th>
        </tr>
    </thead>

The description column will suddenly show, and the price column will disappear. Strange, but yeah, it's really strange. Something is keeping the second column from showing and I don't know what it is.

I hope some Magento expert here can enlighten me of how to show the second tr th column of review/info.phtml.

UPDATE: For the meantime, I did this:

<th><?php echo $this->__('Item') ?></th>  
 <th></th>
        <th class="a-center"><?php echo $this->__('Price') ?></th>
        <th class="a-center"><?php echo $this->__('Description') ?></th>           
        <th class="a-center"><?php echo $this->__('Qty') ?></th>
        <th class="a-center"><?php echo $this->__('Subtotal') ?></th>

Notice an empty th after the item. That will not show up in the HTML output because it's on the second column (that I don't know why it's not showing up). Everything is now displaying fine. The first, 3rd, 4th, 5th and 6th columns. Hahaha.. Weird... O__O

解决方案

Nevermind, I already resolved it by another another th after the first th. I still don't know what it's not appearing, but at least it was resolved for now. O_O

For the meantime, I did this:

<th><?php echo $this->__('Item') ?></th>  
 <th></th>
        <th class="a-center"><?php echo $this->__('Price') ?></th>
        <th class="a-center"><?php echo $this->__('Description') ?></th>           
        <th class="a-center"><?php echo $this->__('Qty') ?></th>
        <th class="a-center"><?php echo $this->__('Subtotal') ?></th>

Notice an empty th after the item. That will not show up in the HTML output because it's on the second column (that I don't know why it's not showing up). Everything is now displaying fine. The first, 3rd, 4th, 5th and 6th columns. Hahaha.. Weird... O__O

这篇关于在产品评论块结帐Magento桌头柱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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