Skip to content

Category: Magento

Magento: Directive Review Form & Review List

ok guys, here the directive syntax: <?php echo Mage::app() ->getLayout() ->createBlock(‘review/product_view_list’) ->setTemplate(‘review/product/view/list.phtml’) ->toHtml();   echo Mage::app() ->getLayout() ->createBlock(‘review/form’) ->setTemplate(‘review/form.phtml’) ->toHtml(); ?>

Leave a Comment

Magento: Load Customer Data by Email

this how i did it, load customer array data by email $email = “[email protected]”; $customer = Mage::getModel(“customer/customer”); $customer->setWebsiteId(Mage::app()->getWebsite()->getId()); $customer->loadByEmail($email); /*—print the object array–*/ print_r($customer->getData());

Leave a Comment

Magento: Change Currency Thousand Separator from Comma to Dot

for example change indonesian locale currecy format edit file: lib/Zend/Locale/Data/id.xml <currencyFormats> <currencyFormatLength> <currencyFormat> <pattern>¤#.##0,00</pattern> </currencyFormat> </currencyFormatLength> </currencyFormats> Change to <currencyFormats> <currencyFormatLength> <currencyFormat> <pattern>¤#,##0.00</pattern> </currencyFormat> </currencyFormatLength>…

2 Comments

How to Speed up Magento

edit your http://yourmagentourl/.httaccess file ############################################ ## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems… BrowserMatch…

Leave a Comment