Tag Archives: magento

Show Customer Review on Product Page Magento

ShareTo display basic reviews on a product page, you want to add the following line to your catalog.xml within catalog_product_view. “<block type=”review/product_view_list” name=”product.info.product_additional_data” as=”reviews” template=”review/product/view/list.phtml”/>”   And Add below line   <?php echo $this->getChildHtml(‘reviews’) ?>   to your catalog/product/view.phtml template

How to get customer First Name, Last Name , Email Address or Details in magento

Share$customer = Mage::getSingleton(‘customer/session’)->getCustomer(); $email = $customer->getEmail(); // To get Email Id of a customer $firstname = $customer->getFirstname(); // To get Firstname of a customer $lastnam e= $customer->getLastname(); // To get Last name of a customer

How do I change the default Welcome Message?

ShareYou can change the default welcome Message  in magento For Guest or Not logged in user In magento admin go to System -> Configuration – > Design – > Header Tab For Logged in User/Customer You need to change in “app/code/core/Mage/Page/Block/Html/Header.php”: public function getWelcome() {     if (empty($this->_data[‘welcome’])) {         if (Mage::app()->isInstalled() && Mage::getSingleton(‘customer/session’)->isLoggedIn()) { […]

How do I call a static block

ShareHow to call staic block any XML file <reference name=”left”> <block type=”cms/block” name=”sample_block” before=”-“> <action method=”setBlockId”><block_id>sample_block</block_id></action> </block> </reference> How to call staick block in your template or .phtml files <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘my_static_block_name’)->toHtml() ?> How to call static block in CMS->Pages {{block type=”cms/block” block_id=”your_block_id”}}

%d bloggers like this: