VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: alpertheidiot on March 08, 2012, 22:14:13 PM

Title: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: alpertheidiot on March 08, 2012, 22:14:13 PM
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]
Title: Re: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: alpertheidiot on April 02, 2012, 21:57:57 PM
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?
Title: Re: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: I on June 09, 2012, 23:15:59 PM
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
Title: Re: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: PRO on June 09, 2012, 23:42:59 PM
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 } ?>
Title: Re: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: I on June 10, 2012, 00:21:27 AM
@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
Title: Re: Hiding "User Permissions, Customer id, Shopper Group" from Account Details
Post by: PRO on June 10, 2012, 14:01:43 PM
http://forum.virtuemart.net/index.php?topic=90935.0
http://docs.joomla.org/Understanding_Output_Overrides