Tags » Magento

how to send email to customer programmatically in magento?

$templateId = 11;

// Set sender information
$senderName = Mage::getStoreConfig(‘trans_email/ident_support/name’);
$senderEmail = Mage::getStoreConfig(‘trans_email/ident_support/email’);
$sender = array(‘name’ => $senderName,
‘email’ => $senderEmail);

// Set recepient information… 63 more words


Reducing Magento 2 Install Pain through Virtualization

Magento 2 has lifted the minimum supported versions of PHP, MySQL and other supporting software to higher levels – the level anticipated to be the norm when Magento 2 is released at GA. 1,621 more words


About Magento 2.0 developer documentation

With Magento 2 dev beta we also launch documentation in GitHub. Here is a bit more info for those interested.

Hi everybody, this is Bradburn Young with a guest post. 675 more words


Things to consider regarding a web designing company

In the event that you will be delivering your hard earned money throughout selecting any web development firm, definitely you desire to assure yourself that this firm you will end up having a good one. 262 more words


How to programmatically create catalog rule

To create catalog rule programmatically following code snippet can be used.

/* get the catalog rules model */
$CatalogPriceRule = Mage::getModel('catalogrule/rule');

//this is action type valid values are by_percent,by_fixed,to_percent,to_fixed
$actionType = 'by_percent';

                ->setName('My Catalog Rule 1')  //Rule Name
                ->setDescription('Short Description') //Rule Description
                ->setIsActive(1) //Is rule active
                ->setWebsiteIds(array($websiteId)) //website IDs where the rule applies
                ->setCustomerGroupIds(array($customerGroupId)) //customer group IDs to whom the rule applies
                ->setFromDate('') //date from which rule will be applied
                ->setToDate('') //date to which rule will be applied
                ->setSortOrder('') //preference of the rule
                ->setSimpleAction($actionType) //discount to be applied
                ->setDiscountAmount($discount) //amount of discount to be given
                ->setStopRulesProcessing(1); //should catalog rules stop after applying this rule? 276 more words

Product Collection

Product collection will give us the details of the products available in the catalog of our store. So whenever we need to get the product information while writing extension we use product collection to fetch the details as follows. 110 more words