/** * Check attribute is modified or not * * @return boolean */ protected function isModified() { $result = parent::isModified(); if ($result && $this->getAttribute() && $this->getProduct()->mustHaveVariants()) { foreach ($this->getProduct()->getVariantsAttributes() as $attr) { if ($attr->getId() == $this->getAttribute()->getId()) { $result = false; break; } } } return $result; }
/** * Get dir * * @return string */ protected function getDir() { return parent::getDir() . '/text'; }
/** * Get dir * * @return string */ protected function getDir() { return parent::getDir() . '/checkbox'; }