For some reason, the magento website does not apply the coupon codes. It always returns an invalid:
Coupon code is not valid
message. However, strangely enough, this happens when the price of cart is larger then 120 my currency.
If I have one product in cart with the price of 65, the coupon code works OK, but if I have the same product in cart but with qty 2 (which means the total price becomes 130) I get the above mentioned invalid error message
I've traced down the code to Mage_Sales_Model_Quote class, which has a function named
_validateCouponCode()`, inside where the following:
$address->hasCouponCode()
Always returns false
. What should I try?. I ahve reindexed, refreshed cache, etc., but nothing has changed and I can't seem to find in address model the hasCouponCode
function to see what happens in there...