Пример #1
0
 /**
  * overwrite parent
  * enables sending custom images to a friend
  */
 public function getSendUrl()
 {
     $aitcgSharedImgId = $this->getRequest()->getParam('aitcg_shared_img_id');
     if (isset($aitcgSharedImgId)) {
         return Mage::getUrl('*/*/sendmail', array('id' => $this->getProductId(), 'cat_id' => $this->getCategoryId(), 'aitcg_shared_img_id' => $aitcgSharedImgId));
     }
     return parent::getSendUrl();
 }
Пример #2
0
 /**
  * construct
  * set message default for email
  */
 function _construct()
 {
     $data = array();
     $data['sender'] = array();
     $data['sender']['message'] = Mage::getBlockSingleton('rewardpointsreferfriends/rewardpointsreferfriends')->getEmailContent();
     $this->setFormData($data);
     parent::_construct();
 }