$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();
$shipping = $checkout->getShippingAddress();
<?php if($shipping->getData(‘same_as_billing’)!=’1′) { ?>
Not same
<?php } ?>
Tag Archives: Magento
How to show shipping details on shipping method step Magento
<?php
$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();
$shipping = $checkout->getShippingAddress();
echo $shipping->getName() . $shipping->getStreet(1) . $shipping->getPostcode() . $shipping->getCity() . $shipping->getCountry();
?>
How to show billing details on shipping method step Magento
<?php
$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();
$billing = $checkout->getBillingAddress();
echo $billing->getName() . $billing->getStreet(1) . $billing->getPostcode() . $billing->getCity() . $billing->getCountry();
?>
Default billing address of a customer from customer id Magento
<?php
$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();
$customer = Mage::getModel(‘customer/customer’)->load($customerId);
$defaultBilling = $customer->getDefaultBillingAddress();
$defaultBilling>getData(‘country_id’)
?>
Default shipping address of a customer from customer id Magento
<?php
$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();
$customer = Mage::getModel(‘customer/customer’)->load($customerId);
$defaultShipping = $customer->getDefaultShippingAddress();
$defaultShipping->getData(‘country_id’)
?>
Customer ID on product details page Magento
$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();
Remove wishlist link Magento
Comment the below given line in enterprise_wishlist.xml
<!–action method=”addLinkBlock”><blockName>wishlist_link</blockName></action–>
Include sidebar cart on my account page Magento
Add the below given code in customer.xml
<block type=”checkout/cart_sidebar” name=”cart_sidebar” as=”topCart” template=”checkout/cart/sidebar.phtml” />
Remove the block my orders magento
Use “<remove name=”sale.reorder.sidebar”></remove>” in customer.xml file.
Remove menu reward points from my account page magento
Comment the below given code in reward.xml
<!–customer_account>
<block type=”enterprise_reward/customer_account” name=”enterprise.reward.customer.account” />
</customer_account–>