title: Magento custom product type Class 'Zend_Log' not found in
body: <p>I'm trying to make custom product type in magento 1.8 , everything works fine but when adding the product to cart  i get this error :  Class 'Zend_Log' not found in .../Dmx/Plate/Model/Product/Type/Plate.php on line 23. </p>
  
  <pre><code>class Dmx_Plate_Model_Product_Type_Plate extends Mage_Catalog_Model_Product_Type_Abstract{
  
      protected $_isComposite = false;
      protected $_canConfigure = true;
  
      protected function _prepareProduct(Varien_Object $buyRequest, $product, $processMode){
          $preparedProduct = parent::_prepareProduct($buyRequest, $product, $processMode);
          $preparedProduct = $preparedProduct[0];
          $preparedProduct-&gt;setPrice(10);
  
          return array($preparedProduct);
      }
  
      public function hasRequiredOptions($product = null){
          return true;
      }
  
      public function hasOptions($product){
          return true;
      }
  }
  </code></pre>
  
  <p>So i can't figure it out what am i doing wrong. </p>