/**
  * Check if product has required options
  *
  * @return bool
  */
 public function hasRequiredOptions()
 {
     if (parent::hasRequiredOptions() || $this->getProduct()->getLinksPurchasedSeparately()) {
         return true;
     }
     return false;
 }
示例#2
0
文件: Type.php 项目: nemphys/magento2
 /**
  * Check if product has required options
  *
  * @param Mage_Catalog_Model_Product $product
  * @return bool
  */
 public function hasRequiredOptions($product)
 {
     if (parent::hasRequiredOptions($product) || $product->getLinksPurchasedSeparately()) {
         return true;
     }
     return false;
 }