Skip to content

Month: March 2015

Magento : Custom Email Template on Custom Module

here the XML guide <template> <email> <{section_name}_{group_name}_{fields_name} translate=”label” module=”mymodule”> <label>Custom Email Template</label> <file>mymodule/custom_email.html</file> <type>html</type> </{section_name}_{group_name}_{fields_name}> </email> </template>   <{fields_name} translate=”label”> <label>Email Template</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_email_template</source_model> <sort_order>5</sort_order>…

Leave a Comment

Magento : Manggil data produk ngangge SKU

sederhana sih, ngan sok poho wae…jadi mending di catet weh,   mangga   $product = Mage::getModel(‘catalog/product’); print_r($product->load($product->getIdBySku(‘SKU_DI_DIEU’))->getData());

Leave a Comment

Magento : Munculkeun Daftar Nilai Attribute ti Spesifik Attribute

jaga2 bisi poho..soalna sering dipake,….ieu carana keur munculkeun attribute value, mangga ah..haha   $name=’size’;  /*kode attribute na di dieu*/ $attributeInfo = Mage::getResourceModel(‘eav/entity_attribute_collection’)->setCodeFilter($name)->getFirstItem(); $attributeId = $attributeInfo->getAttributeId();…

Leave a Comment