Magento Cara mendapatkan subtotal programmatically

Cara mendapatkan subtotal secara program menggunakan PHP di Magento.
29  
       

Cara mendapatkan subtotal secara program menggunakan PHP di Magento.
[code]
$cart = Mage::getModel(‘checkout/cart’)->getQuote();
$totals = $cart->getTotals();
$subtotal = $totals["subtotal"]->getValue();
[/code]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>