/** * This key is used when checking if item is unique in the cart * * @return string */ public function getKey() { return parent::getKey() . $this->getSerializedOptions(); }
/** * Check item key equal * * @param \XLite\Model\OrderItem $item Item * @param string $key Key * * @return boolean */ public function checkItemKeyEqual(\XLite\Model\OrderItem $item, $key) { return $item->getKey() == $key; }
/** * {@inheritDoc} */ public function getKey() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getKey', array()); return parent::getKey(); }