Magento: Adding rule discount to product page -
i struggling work out how first detect if rule applies product in magento display amount.
i found need specify specific rule id isnt idea - , doesnt detect if applies current product.
//$rule = mage::getmodel('salesrule/rule')->load(5); //$rule->setwebsiteids("5"); //echo $rule->getdiscountamount(); thanks
Comments
Post a Comment