we created coupon code and we wanted it should not applicable only for particular category.
so we used this condition as in image. its working fine.
but we are getting error message as below.
Coupon code "123456" is not valid. [not real coupon code ]
we want to change this error message as coupon code not applicable for this category
.
We are using Magento Hackathon promocode error message module
we checked in extension code & in app/locale/en_us/csv files , there is no error message matching present to match above error message.
we found above message in these 2 files app/locale/en_us/ Mage_checkout.csv , Mage_xmlconnect.csv .we changed here also but its not working for us.
Please tell me where i need to chnage those error message.
public function validate($couponCode, $quote)
{
$this->_quote = $quote;
try {
/** @var Mage_SalesRule_Model_Coupon $coupon */
$coupon = Mage::getModel('salesrule/coupon')->load($couponCode, 'code');
}
catch (Exception $e) {
Mage::logException($e);
return;
}
// no coupon
if (!$coupon->getId()) {
Mage::throwException($this->_formatMessage('Coupon code does not exist.'));
}
/** @var $rule Mage_SalesRule_Model_Rule */
$rule = Mage::getModel('salesrule/rule')->load($coupon->getRuleId());
$this->_validateGeneral($rule, $coupon);
if (Mage::getStoreConfigFlag('checkout/promocodemessages/include_conditions')) {
$this->_validateConditions($rule);
}
}