我正在开发一个mageto运送mettod的客户,因为价格api我需要当前客户的送货地址(pincode),在发货标签中请帮助
答案 0 :(得分:1)
你看起来像这样......
<?php
echo Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getPostcode();
echo Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getPostcode();
?>