Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * Get dir
  *
  * @return string
  */
 protected function getDir()
 {
     return parent::getDir() . '/text';
 }
Example #3
0
 /**
  * Get dir
  *
  * @return string
  */
 protected function getDir()
 {
     return parent::getDir() . '/checkbox';
 }