Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Subtotal và Grand Total lỗi $0.00
 
MeoMap
Jr. Member
 
Total Posts:  8
Joined:  2011-09-25
 

Mình bị lỗi bên view cart và review cart:

Subtotal $0.00
Grand Total $0.00

Mage_Checkout_Block_Cart_Total:

public function renderTotals($area = null, $colspan = 1)
{
$html = ‘’;
foreach($this->getTotals() as $total) {
if ($total->getArea() != $area && $area != -1) {
continue;
}
$html .= $this->renderTotal($total, $area, $colspan);
}
return $html;
}

Totals.php

public function renderTotals($area = null, $colspan = 1)
{
$html = ‘’;
foreach($this->getTotals() as $total) {
if ($total->getArea() != $area && $area != -1) {
continue;
}
$html .= $this->renderTotal($total, $area, $colspan);
}
return $html;
}

totals.phtml

<table id="shopping-cart-totals-table">
<col />
<col width="1" />
<tfoot>
<?php echo $this->renderTotals('footer'); ?>
</tfoot>
<tbody>
<?php echo $this->renderTotals(); ?>
</tbody>
</table>

Subtotal và GrandTotal vẫn null, bạn nào biết lỗi này hướng dẫn mình với

Magento ver. 1.4.0.1

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top