Skip to content

PHPCodez

Search
  • PHP
  • Magento
  • Javascript
  • HTML
  • My SQL
  • Functions
  • WordPress
  • Plugins
  • Joomla
  • Linux
  • jQuery
  • Profile
  • comments

Monthly Archives: October 2012

Magento

Check shipping and billing address are same magento review section

October 31, 2012 Pramod T P

$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();
$shipping = $checkout->getShippingAddress();
<?php if($shipping->getData(‘same_as_billing’)!=’1′) { ?>
Not same
<?php } ?>

MagentoPHP
Magento

How to show shipping details on shipping method step Magento

October 23, 2012 Pramod T P

<?php

$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();

$shipping = $checkout->getShippingAddress();

echo $shipping->getName() . $shipping->getStreet(1) . $shipping->getPostcode() . $shipping->getCity() . $shipping->getCountry();

?>

MagentoPHP
Magento

How to show billing details on shipping method step Magento

October 23, 2012 Pramod T P

<?php

$checkout = Mage::getSingleton(‘checkout/session’)->getQuote();

$billing = $checkout->getBillingAddress();

echo $billing->getName() . $billing->getStreet(1) . $billing->getPostcode() . $billing->getCity() . $billing->getCountry();

?>

MagentoPHP
Magento

Default billing address of a customer from customer id Magento

October 23, 2012 Pramod T P

<?php

$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();

$customer = Mage::getModel(‘customer/customer’)->load($customerId);

$defaultBilling = $customer->getDefaultBillingAddress();

$defaultBilling>getData(‘country_id’)

?>

MagentoPHP
Magento

Default shipping address of a customer from customer id Magento

October 23, 2012 Pramod T P

<?php

$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();

$customer = Mage::getModel(‘customer/customer’)->load($customerId);

$defaultShipping = $customer->getDefaultShippingAddress();

$defaultShipping->getData(‘country_id’)

?>

MagentoPHP
Magento

Customer ID on product details page Magento

October 23, 2012 Pramod T P

$customerId=Mage::getSingleton(‘customer/session’)->getCustomer()->getId();

MagentoPHP
Magento

Remove wishlist link Magento

October 17, 2012 Pramod T P

Comment the below given line in  enterprise_wishlist.xml

<!–action method=”addLinkBlock”><blockName>wishlist_link</blockName></action–>

MagentoPHP
Magento

Include sidebar cart on my account page Magento

October 11, 2012 Pramod T P

Add the below given code in customer.xml

<block type=”checkout/cart_sidebar” name=”cart_sidebar” as=”topCart” template=”checkout/cart/sidebar.phtml” />

MagentoPHP
Magento

Remove the block my orders magento

October 11, 2012 Pramod T P

Use  “<remove name=”sale.reorder.sidebar”></remove>” in customer.xml file.

MagentoPHP
Magento

Remove menu reward points from my account page magento

October 11, 2012 Pramod T P

Comment the below given code in reward.xml

<!–customer_account>
<block type=”enterprise_reward/customer_account” name=”enterprise.reward.customer.account” />
</customer_account–>

MagentoPHP

Posts navigation

1 2 3 Next →

Beginners' Guide

Recent Posts

  • Upstream sent too big header while reading response
  • Navigate to a Folder from Any Location by Typing a Letter – Linux
  • Magento 2 Admin Content Deployment
  • React vs next JS
  • Disable CAPTCHA Magento 2 Admin Login
  • Difference Between composer.json and composer.lock Files
  • Magento 2 Regenerate URL Rewrites Manually For Categories
  • Magento 2 Regenerate URL Rewrites Manually for Products
  • composer self downgrade

Recent Comments

  • beats solo 4 on allow_url_include
  • Hairstyles on php end of line
  • penipu on cgi.force_redirect
  • lumi777 link alternatif on cgi.force_redirect
  • Beauty Fashion on mysqldump create table if not exists

Categories

  • .htaccess (32)
  • Ajax (4)
  • Apache (43)
  • AWS (11)
  • Cookie (4)
  • Database Model (9)
  • Design Pattern (9)
  • Filter (27)
  • General (187)
  • HTML (5)
  • IP.Board (1)
  • Javascript (99)
  • Jetty (3)
  • Joomla (17)
  • jQuery (63)
  • JSON (3)
  • JSP (1)
  • Linux (125)
  • Magento (371)
  • My SQL (74)
  • nginx (4)
  • OOPs (12)
  • Payment Gateway (1)
  • PHP (1,005)
  • Plugins (11)
  • Prototype (1)
  • session (5)
  • Socialengine (1)
  • SQL (69)
  • SVN (17)
  • Uncategorized (11)
  • Vbulletin (11)
  • Wordpress (89)
Proudly powered by WordPress