Example #1
0
 /**
  * Load vendor's attributes into the object
  *
  * @param   Mage_Core_Model_Abstract $object
  * @param   integer $entityId
  * @param   array|null $attributes
  * @return  Ced_CsMarketplace_Model_Vendor_Attribute
  */
 public function load($entityId, $field = NULL)
 {
     parent::load($entityId, $field);
     if ($this && $this->getId()) {
         $joinFields = $this->_vendorForm($this);
         if (count($joinFields) > 0) {
             foreach ($joinFields as $joinField) {
                 $this->setData('is_visible', $joinField->getIsVisible());
                 $this->setData('position', $joinField->getSortOrder());
                 $this->setData('use_in_registration', $joinField->getData('use_in_registration'));
                 $this->setData('position_in_registration', $joinField->getData('position_in_registration'));
                 $this->setData('use_in_left_profile', $joinField->getData('use_in_left_profile'));
                 $this->setData('fontawesome_class_for_left_profile', $joinField->getData('fontawesome_class_for_left_profile'));
                 $this->setData('position_in_left_profile', $joinField->getData('position_in_left_profile'));
             }
         }
     }
     return $this;
 }