News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Hiding "User Permissions, Customer id, Shopper Group" from Account Details

Started by alpertheidiot, March 08, 2012, 22:14:13 PM

Previous topic - Next topic

alpertheidiot

Is there a way to hide above fields from "account details" for a customer? customers can see these fields which are not necessary for them, it will only cause confusion.

Couldn't hide them from "shopper fields".

thanks


[attachment cleanup by admin]

alpertheidiot

VM 2.0.3E and still have the same problem. how come everybody is happy with this? it's just a not good user experience, with customer id's and stuff. should it not be simple and straight forward for an ordinary user?

I

Hi!
Yes, this is strange and not neccessary info. My clients are not happy about this information... I have found that in public_html/components/com_virtuemart/views/user/tmpl/edit_vmshopper.php about line 24 we can hide the info if we change the <fieldset> to <fieldset style="display: none;">

The info is hidden, but not tested yet how it works...

Regards,
Felix

PRO

do a template override of that file, and just remove

<tr>
         <td class="key">
            <label for="perms">
               <?php echo JText::_('COM_VIRTUEMART_USER_FORM_PERMS') ?>:
            </label>
         </td>
         <td>
            <?php echo $this->lists['perms']; ?>
         </td>
      </tr>

      <tr>
         <td class="key">
            <label for="customer_number">
               <?php echo JText::_('COM_VIRTUEMART_USER_FORM_CUSTOMER_NUMBER') ?>:
            </label>
         </td>
         <td>
          <?php if(Permissions::getInstance()->check('admin')) { ?>
            <input type="text" class="inputbox" name="customer_number" id="customer_number" size="40" value="<?php echo  $this->lists['custnumber'];
               ?>" />
         <?php } else {
            echo $this->lists['custnumber'];
         } ?>
         </td>
      </tr>
       <?php if($this->lists['shoppergroups']) { ?>
      <tr>
         <td class="key">
            <label for="virtuemart_shoppergroup_id">
               <?php echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_GROUP') ?>:
            </label>
         </td>
         <td>
            <?php echo $this->lists['shoppergroups']; ?>
         </td>
      </tr>
      <?php } ?>

I

@BanquetTables.pro

thank you for suggestion but... I know how to override css, but how to override php??? I'll be thankfull for info :)

Regards,
Felix