Magento Themes and Magento Extensions

get collection of customer all address in magento

Posted on September 15th, 2012 | Posted by admin

get collection of customer all address in magento

Use the following code to retrieve all address of customer with the help of its email id.

$websiteid = Mage::app()->getwebsite->getid();
$store = Mage::app()->getStore();

$customer = Mage::getModel(“customer/customer”);
$customer->website_id = $websiteid;
$address = Mage::getModel(“Customer/Entity_Address_Collection”);

Magento: Load store specific product

Posted on September 14th, 2012 | Posted by admin

Different stores can be set in Magento. A product can be made visible in selected stores.

* get store id
$storeId = Mage::app()->getStore()->getId();
* call the Magento catalog/product model
* set the current store ID
* load the product
$product = Mage::getModel(‘catalog/product’)

Special tips about Magento Customization and Magento Theme Development

Posted on September 13th, 2012 | Posted by admin
This post is all about Magento customization and Magento theme development with website applications development. Today web services are growing very fast and many new programming language and framework used to create dynamic websites.
Many businesspersons use ecommerce website to provide unique web solutions to their customers. People can buy or sell product online through ecommerce web site and get response through the website. Website developer use Magento software to develop ecommerce website.
Magento is an open source web applications software used to develop ecommerce projects and shopping cart solution. Website programmers develop themes for the Magento ecommerce platform, which provide flexible web solutions to create new projects.
If you want to develop ecommerce web projects and want to boost your business returns, then it is mandatory to build up an e-commerce website. Magento e-Commerce is the new technology arrives for ecommerce development and shopping cart solution, and the latest technology available. Magento will help you to create online store, online shopping cart with Magento CMS and customization.

Temporarily Deactivate Your Magento Store With Htaccess

Posted on September 12th, 2012 | Posted by admin

Here is quick snippet of code that we use all the time when upgrading or moving a Magento store. This will stop people from creating accounts, placing orders, etc… while you are in the middle of heavy database work.

Add this to your .htaccess file in your root directory and only your IP address will be able to view your website. All other visitors will get redirected to an “updating” page.

Add this to your .htaccess file (directly after RewriteEngine On):

RewriteCond %{REMOTE_HOST} !^
RewriteCond %{REQUEST_URI} !/updating.html$
RewriteRule .*$ /updating.html [R=302,L]

Don’t forget to create a file called updating.html and put the message that you want visitors to see while your site is down.

Editing the Footer in a stock magento build

Posted on September 11th, 2012 | Posted by admin

The items in the footer area are in two different locations. One part is a static block created within the magento admin area (CMS > Static Block). The other part is held in the related .phtml / .php / .xml files within the design files.

First off, the XML files

Here you will find some footer reference:

1.<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
2.<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
3.<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
Page 4 of 5«12345»