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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

React Native allow user to reorder elements in a scrollview list -

multithreading - Exception in Application constructor -