예제 #1
0
 /**
  * Add Assigned products accordion to layout
  *
  */
 protected function _prepareLayout()
 {
     if (is_null(Mage::registry('current_tag')->getId())) {
         return $this;
     }
     $tagModel = Mage::registry('current_tag');
     $this->setId('tag_assigned_grid');
     $this->addItem('tag_assign', array('title' => Mage::helper('tag')->__('Products Tagged by Administrators'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/assigned', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId()))));
     return parent::_prepareLayout();
 }
예제 #2
0
 /**
  * Add products and customers accordion to layout
  *
  */
 protected function _prepareLayout()
 {
     if (is_null(Mage::registry('current_tag')->getId())) {
         return $this;
     }
     $tagModel = Mage::registry('current_tag');
     $this->setId('tag_customer_and_product_accordion');
     $this->addItem('tag_customer', array('title' => Mage::helper('tag')->__('Customers Submitted this Tag'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/customer', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId()))));
     $this->addItem('tag_product', array('title' => Mage::helper('tag')->__('Products Tagged by Customers'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/product', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId()))));
     return parent::_prepareLayout();
 }
 /**
  * Add Assigned products accordion to layout
  *
  */
 protected function _prepareLayout()
 {
     return parent::_prepareLayout();
 }