Exemple #1
0
 public function getGroupByType($type = null)
 {
     if (is_null($type)) {
         $type = $this->getType();
     }
     $group = parent::getGroupByType($type);
     if ($group === '' && ($type = self::OPTION_TYPE_GIFT_CARD_VALUE)) {
         $group = self::OPTION_GROUP_GIFT_CARD;
     }
     return $group;
 }
Exemple #2
0
 /**
  * Get group name of option by given option type
  *
  * @param string $type
  * @return string
  */
 public function getGroupByType($type = null)
 {
     if (is_null($type)) {
         $type = $this->getType();
     }
     switch ($type) {
         case self::OPTION_TYPE_AITCUSTOMER_IMAGE:
             return self::OPTION_GROUP_FILE;
     }
     return parent::getGroupByType($type);
 }
Exemple #3
0
 /**
  * Get group name of option by given option type
  *
  * @param string $type
  * @return string
  */
 public function getGroupByType($type = null)
 {
     if (is_null($type)) {
         $type = $this->getType();
     }
     $swatch_id = str_replace(self::OPTION_GROUP_SWATCH . '_', '', $type);
     $swatch = Mage::getModel('swatches/input')->load($swatch_id);
     if ($swatch && $swatch->getSwatchId()) {
         return self::OPTION_GROUP_SWATCH;
     }
     return parent::getGroupByType($type);
 }