Guidance Solution for Magento, Php developers
Pages
Home
Magento
Magento 2
Magento interview Q&A
Laravel
Php
MySql
JQuery
Saturday, 11 October 2014
how to get cupon code by cupon code rule id in magento
<?php
$oRule = Mage::getModel('salesrule/rule')->load(1);//cupon code rule id.
echo $cuponcd = $oRule->getData('coupon_code');
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment