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 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -