We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11eca9d commit 1db9869Copy full SHA for 1db9869
app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php
@@ -567,7 +567,7 @@ public function checkProductBuyState($product = null)
567
if ($option->getIsRequire()) {
568
$customOption = $this->getProduct($product)
569
->getCustomOption(self::OPTION_PREFIX . $option->getId());
570
- if (!$customOption || strlen($customOption->getValue()) == 0) {
+ if (!$customOption || $customOption->getValue() === null || strlen($customOption->getValue()) === 0) {
571
$this->getProduct($product)->setSkipCheckRequiredOption(true);
572
Mage::throwException(
573
Mage::helper('catalog')->__('The product has required options')
0 commit comments