News:

Looking for documentation? Take a look on our wiki

Main Menu

Version 2.0.24c

Started by theemediapro, April 29, 2014, 07:08:26 AM

Previous topic - Next topic

theemediapro

Hi,

When a user logins in I do not want them to see this information. How do I remove this TAB general user information?

I have spent hours looking through every tab in every section in the virtuemart backend and do not see this option.

I have attached a picture to this message.

Please help!

Thanks,
TMP

[attachment cleanup by admin]

byPV

Hi,

I think this is not standard look of the VirtueMart template for Account. Do you have installed a custom theme?

To display/hide tabs you can edit the template "/components/com_virtuemart/views/user/tmpl/edit.php" or in the case of custom theme "/templates/{YOUR_TEMPLATE}/html/com_virtuemart/user/edit.php". Look for the following code (this is from default VirtueMart template):


$tabarray = array();
    if($this->userDetails->user_is_vendor){
    if(!empty($this->add_product_link)) {
    echo $this->add_product_link;
    }
    $tabarray['vendor'] = 'COM_VIRTUEMART_VENDOR';
    }
    $tabarray['shopper'] = 'COM_VIRTUEMART_SHOPPER_FORM_LBL';
    //$tabarray['user'] = 'COM_VIRTUEMART_USER_FORM_TAB_GENERALINFO';
    if (!empty($this->shipto)) {
    $tabarray['shipto'] = 'COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL';
    }
    if (($_ordcnt = count($this->orderlist)) > 0) {
    $tabarray['orderlist'] = 'COM_VIRTUEMART_YOUR_ORDERS';
    }

    shopFunctionsF::buildTabs ( $this, $tabarray);


You can modify php array $tabarray in this code and show/hide whatever you want.

Regards,
Pavel