Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento购物车标题显示错误_Php_Magento - Fatal编程技术网

Php Magento购物车标题显示错误

Php Magento购物车标题显示错误,php,magento,Php,Magento,我是磁电机的新手,我在magento购物车页面中遇到了一个问题,其中显示的带有标题的产品的详细信息是错误的。请给我一个解决办法 检查此链接:您可以通过 app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/checkout/cart.phtml 只需更改主题checkout/cart.phtml即可 <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</

我是磁电机的新手,我在magento购物车页面中遇到了一个问题,其中显示的带有标题的产品的详细信息是错误的。请给我一个解决办法


检查此链接:

您可以通过

app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/checkout/cart.phtml 

只需更改主题checkout/cart.phtml即可

 <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>  
 <th rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>

 <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>

 <th class="a-center cart-price-head" colspan="<?php echo $mergedCells; ?>">
    <span class="nobr"><?php echo $this->__('Price') ?></span>
 </th>

 <th rowspan="<?php echo $mergedCells; ?>" class="a-center">
     <?php echo $this->__('Qty') ?>
 </th>

 <th class="a-center cart-total-head" colspan="<?php echo $mergedCells; ?>">
   <?php echo $this->__('Subtotal') ?>
 </th>

 <th class="a-center" rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>

简单的答案是

转到checkout/cart.phtml

 <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>  
 <th rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>

 <th rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>

 <th class="a-center cart-price-head" colspan="<?php echo $mergedCells; ?>">
    <span class="nobr"><?php echo $this->__('Price') ?></span>
 </th>

 <th rowspan="<?php echo $mergedCells; ?>" class="a-center">
     <?php echo $this->__('Qty') ?>
 </th>

 <th class="a-center cart-total-head" colspan="<?php echo $mergedCells; ?>">
   <?php echo $this->__('Subtotal') ?>
 </th>

 <th class="a-center" rowspan="<?php echo $mergedCells; ?>">&nbsp;</th>
然后在第一次复制后,将此
标记下的
'Remove'
添加到最后一次
'Subtotal'
之后,您的问题就解决了。

看起来您的标记放错了位置。你能用那个表的代码片段更新吗。我想桌子的id是购物车桌子