Example #1
0
 protected function _beforeToHtml()
 {
     if (Mage::registry('current_customer')->getId()) {
         $this->addTabAfter('On Hold entries', array('label' => Mage::helper('customer')->__('On Hold Entries'), 'url' => $this->getUrl('reea_entries/adminhtml_customer/entries', array('_current' => true)), 'class' => 'ajax', 'active' => false), "tags");
     }
     return parent::_beforeToHtml();
 }
Example #2
0
 protected function _beforeToHtml()
 {
     if (Mage::helper('credit')->getEnabled()) {
         $this->addTab('credit', array('label' => Mage::helper('credit')->__('Credits'), 'content' => $this->getLayout()->createBlock('credit/adminhtml_customer_edit_tab_credit')->initForm()->toHtml()));
     }
     return parent::_beforeToHtml();
 }
Example #3
0
 protected function _prepareLayout()
 {
     $ret = parent::_prepareLayout();
     if (Mage::helper('fieldsmanager')->getStoredDatafor('enable')) {
         $this->addTab('fme_fm_customers', array('label' => Mage::helper('fieldsmanager')->getheading(), 'content' => $this->getLayout()->createBlock('fieldsmanager/customer_edit_fmcustomers')->setTemplate('fieldsmanager/fmcustomer.phtml')->toHtml()));
     }
     return $ret;
 }
Example #4
0
 protected function _prepareLayout()
 {
     //get all existing tabs
     $this->parent = parent::_prepareLayout();
     //add new tab
     $this->addTab('customattributes', array('label' => Mage::helper('catalog')->__('Custom Attributes'), 'title' => Mage::helper('catalog')->__('Custom Attributes'), 'content' => $this->getLayout()->createBlock('ajaxlogin/rewrite_customer_edit_tab_account')->initCustomForm()->toHtml(), 'active' => Mage::registry('current_customer')->getId() ? false : true));
     return $this->parent;
 }
Example #5
0
 protected function _beforeToHtml()
 {
     $id = Mage::registry('current_customer')->getId();
     if ($id) {
         $this->addTab('amemail', array('label' => Mage::helper('amemail')->__('Emails History'), 'class' => 'ajax', 'url' => $this->getUrl('amemail/adminhtml_index/customer', array('customer_id' => $id)), 'after' => 'tags'));
     }
     $this->_updateActiveTab();
     return parent::_beforeToHtml();
 }
Example #6
0
 protected function _beforeToHtml()
 {
     $res = Mage::getSingleton('admin/session')->isAllowed('admin/customer/rewardpoints');
     $customer = Mage::registry('current_customer');
     if ($customer->getId() && $res) {
         $this->addTab('rewardpoints', array('label' => Mage::helper('rewardpoints')->__('Reward Points'), 'content' => $this->getLayout()->createBlock('rewardpoints/adminhtml_customerpoints')->initForm()->toHtml()));
         $this->_updateActiveTab();
     }
     return parent::_beforeToHtml();
 }
Example #7
0
 protected function _beforeToHtml()
 {
     if (Mage::helper('marketplace')->isSupplier(Mage::registry('current_customer')->getId())) {
         $this->addTabAfter('shipping_data', array('label' => Mage::helper('marketplace')->__('Shipping Costs'), 'class' => 'ajax', 'url' => $this->getUrl('*/suppliers/shippingCosts', array('_current' => true))), 'account');
         $this->addTabAfter('sold_products', array('label' => Mage::helper('marketplace')->__('Sold Products'), 'class' => 'ajax', 'url' => $this->getUrl('*/suppliers/soldProducts', array('_current' => true))), 'shipping_data');
         $this->addTabAfter('supplier_profile', array('label' => Mage::helper('marketplace')->__('Supplier Profile'), 'class' => 'ajax', 'url' => $this->getUrl('*/suppliers/profile', array('_current' => true))), 'sold_products');
         $this->addTabAfter('supplier_rates', array('label' => Mage::helper('marketplace')->__('Customer Rates'), 'class' => 'ajax', 'url' => $this->getUrl('*/suppliers/rates', array('_current' => true))), 'supplier_profile');
         $this->addTabAfter('assigned_categories', array('label' => Mage::helper('marketplace')->__('Assigned Categories'), 'class' => 'ajax', 'url' => $this->getUrl('*/suppliers/assignedCategories', array('_current' => true))), 'supplier_profile');
     }
     parent::_beforeToHtml();
 }
Example #8
0
 protected function _beforeToHtml()
 {
     /*$this->addTab('rewardpoints', array(
           'label'     => Mage::helper('rewardpoints')->__('Reward Points'),
           'class'     => 'ajax',
           'url'       => $this->getUrl('rewardpoints/adminhtml_customerstats', array('_current' => true)),
       ));*/
     $this->addTab('rewardpoints', array('label' => Mage::helper('rewardpoints')->__('Reward Points'), 'content' => $this->getLayout()->createBlock('rewardpoints/adminhtml_customerpoints')->initForm()->toHtml()));
     //$this->getResponse()->setBody($this->getLayout()->createBlock('rewardpoints/adminhtml_customerstats')->toHtml());
     $this->_updateActiveTab();
     return parent::_beforeToHtml();
 }
Example #9
0
 public function addTab($tabId, $tab)
 {
     $tabsAllow = array();
     if ($vendor = Mage::helper('smvendors')->getVendorLogin()) {
         $tabsAllow = array('customer_groups');
     } else {
         $tabsAllow = array('account', 'addresses', 'orders', 'cart', 'wishlist', 'newsletter', 'reviews', 'tags');
     }
     if (in_array($tabId, $tabsAllow)) {
         return parent::addTab($tabId, $tab);
     }
     return $this;
 }
 protected function _beforeToHtml()
 {
     if (Mage::registry('current_customer')->getId()) {
         $this->addTabAfter('purchase_premium_access', array('label' => Mage::helper('customer')->__('Purchase PremiumACCESS'), 'content' => $this->getLayout()->createBlock('icc_premiumaccess/adminhtml_customer_edit_tab_purchase')->toHtml()), 'wishlist');
         $this->addTabAfter('gift_shared_premium_access', array('label' => Mage::helper('customer')->__('Gift PremiumACCESS'), 'content' => $this->getLayout()->createBlock('icc_premiumaccess/adminhtml_customer_edit_tab_gift')->toHtml()), 'purchase_premium_access');
     }
     /*
             $this->addTab('primumgift', array(
                    'label'     => Mage::helper('customer')->__('Payment Mode'),
                    'content'   => $this->getLayout()->createBlock('icc_premiumaccess/adminhtml_customer_edit_tab_gift')->toHtml(),
                 ));
     */
     parent::_beforeToHtml();
 }
Example #11
0
 protected function _beforeToHtml()
 {
     //        $this->addTabAfter('customerprices', array(
     //            'label'     => Mage::helper('customer')->__('Customer Prices'),
     //            'class'     => 'ajax',
     //            'url'       => $this->getUrl('customerprices/customer/customerprices', array('_current' => true)),
     //        ),'addresses');
     //$this->addTab('customerprices', array(
     //    'label'     => Mage::helper('catalog')->__('Customer Prices'),
     //    'content'   => $this->getLayout()
     //        ->createBlock('customerprices/adminhtml_customer_edit_tab_customerprices')->toHtml(),
     //));
     return parent::_beforeToHtml();
 }
Example #12
0
 protected function _beforeToHtml()
 {
     if (Mage::registry('current_customer')->getId()) {
         /*
          * C2Quote Customer          
          */
         if (Mage::getSingleton('admin/session')->isAllowed('sales/quotations/actions/view')) {
             $this->addTab('Qquoteadv', array('label' => Mage::helper('customer')->__('Quotations'), 'class' => 'ajax', 'url' => $this->getUrl('quoteadv/adminhtml_qquoteadv/quotes', array('_current' => true))));
         }
     }
     $this->_updateActiveTab();
     Varien_Profiler::stop('customer/tabs');
     return parent::_beforeToHtml();
 }
Example #13
0
 /**
  * Insert the Customer Save card Tab
  */
 protected function _beforeToHtml()
 {
     if (Mage::registry('current_customer')->getId()) {
         $this->addTab('customer_cc', array('label' => Mage::helper('acimpro')->__('Authorize.net CIM Details'), 'content' => $this->getLayout()->createBlock('acimpro/adminhtml_customer_edit_tab_customercard')->toHtml(), 'after' => 'tags'));
     } else {
         /*
         		   $this->addTab('customer_cc', array(
                         'label' => Mage::helper('acimpro')->__('Enter Customer Cards'),
                         'content' => $this->getLayout()->createBlock('acimpro/adminhtml_customer_edit_tab_customercard')->toHtml(),
                         'after' => 'addresses'
                     ));
         */
     }
     return parent::_beforeToHtml();
 }
Example #14
0
 protected function _prepareLayout()
 {
     $this->parent = parent::_prepareLayout();
     $this->addTab("tabid", array("label" => Mage::helper("additionalinfo")->__("Custom Registration Fields"), "content" => $this->getLayout()->createBlock("additionalinfo/adminhtml_tabs_tabid")->toHtml()));
     return $this->parent;
 }