Order Checkout Session

A la pàgina de confirmació de la comanda (checkout/success) podem obtnir les dades de la comanda amb:

$order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
echo $subtotal = $order->getSubtotal();
echo $order->getId(); //the id of the order
echo $order->getIncrementId();//the increment id of the order
echo $order->getGrandTotal();//grand total of the order 
 
magento/order_checkout_session.txt · Darrera modificació: 2010/03/26 09:19 per resteve
 
Copyright: Zikzakmedia Llicència Creative Commons By-NC-SA
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki