Question Updated
I am being try to find the discount amount which match the shopping cart rule based on product. I replicate the module 'Shopping Cart Price Rule' to another module which i want to create my discount rule under condition tab.My new module does not have coupon code.It has rule information and condition only.
So Here i want to get discount amount that matches my new module rule based on product details(product id, sku) with out coupon code.
/**
* Get rules collection for current object state
*
* @return Mage_SalesRule_Model_Mysql4_Rule_Collection
*/
protected function _getRules()
{
$key = $this->getWebsiteId() . '_' . $this->getCustomerGroupId() . '_' . $this->getCouponCode();
return $this->_rules[$key];
}
Here we dont use $this->getCouponCode() to find the rule match.
Before going to replicated module, i just want to know is it possible in shopping cart price rule module.
My question is , How do i find the discount amount based on product that matches shopping cart price rule with out giving coupon code ?