Magento. Impossible to add the configurable products to the cart.
I have a big issue with configurable products. Impossible to add them to the cart. I always get "Please specify the product's option(s)."
.
There is no error in system.log
or exception.log
.
After some debug and googling I found that this issue appeared after after I applied shopping cart rules with a category condition
. So I removed the shopping cart rules that had a category condition and then it work perfectly. I was able to add any configurable product to the cart again. But I need the shopping rules I used. Adding a new one didn’t work: if the shopping cart rule had a category condition, impossible to add configurable product to the cart. Without a category condition, no issues.
Fixed this issue by copying and changing the core file ../app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php
to ../app/code/local/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php.
instead
117str, method validate()
Full method code