Ejemplo n.º 1
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();
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
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();
 }
Ejemplo n.º 5
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();
 }
Ejemplo n.º 6
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();
 }
 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();
 }
Ejemplo n.º 8
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();
 }
Ejemplo n.º 9
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();
 }
Ejemplo n.º 10
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();
 }
Ejemplo n.º 11
0
 protected function _beforeToHtml()
 {
     $this->addTab('customer_groups', array('label' => Mage::helper('customer')->__('Customer Group'), 'content' => $this->getLayout()->createBlock('smvendors/override_adminhtml_customer_edit_tab_group')->initForm()->toHtml()));
     return parent::_beforeToHtml();
 }