Exemplo n.º 1
0
 /**
  * Compare item
  *
  * @param   Mage_Sales_Model_Quote_Item $item
  * @return  bool
  */
 public function compare($item)
 {
     if ($item->getOptionByCode('chili_document_id')) {
         return false;
     }
     return parent::compare($item);
 }
Exemplo n.º 2
0
 public function compare($item)
 {
     //Get model for info_buyRequest option
     $option_model = $item->getOptionByCode('info_buyRequest');
     //Unserialize its value
     $options = unserialize($option_model->getValue());
     //Check if quote item represents web-to-print product.
     //If it does then do not merge these items.
     if (isset($options['zetaprints-TemplateID'])) {
         return false;
     }
     return parent::compare($item);
 }