1

我正在尝试在自定义主题中编辑 Checkout Review 模板,但在尝试重新排序表格列时遇到问题。

我做了以下

  • 编辑了自定义主题 - app/design/frontend//default/template/checkout/onepage/review/info.phtml
  • 编辑了基本主题(作为测试) - app/design/frontend/base/default/template/checkout/onepage/review/info.phtml
  • 禁用所有缓存管理
  • 启用模板提示但页面不呈现

我已经改变了自定义主题中的表格类,如下所示

<table class="data-table test" id="checkout-review-table">

我已按如下方式对自定义主题中的列重新排序,但未显示更改

<th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
<th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Qty')?></th>
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price')?></th>
<th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>

谁能指出我正确的方向?

4

2 回答 2

0

您肯定在编辑正确的模板,因此为了防止混淆,您可以恢复对基本模板的所有更改并从自定义模板中的 info.phtml 的新副本开始工作。

更新

<thead>
    <tr>
        <th rowspan="<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
        <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
        <th rowspan="<?php echo $rowspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
        <th colspan="<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
    </tr>
    <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
        <tr>
            <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
            <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
            <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
            <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
        </tr>
    <?php endif; ?>
</thead>

在此处输入图像描述

于 2012-11-30T12:38:41.370 回答
0

我之前遇到过这个问题,如果您使用的是 SagePay 或任何其他付款方式,请检查扩展文件夹,该文件夹应该有另一个 review/info.phtml 文件。这就是你要找的那个。

希望这会有所帮助,亚历克斯

于 2016-10-07T16:17:57.287 回答