News:

Support the VirtueMart project and become a member

Main Menu

Disable main Name field (shopper fields)

Started by mhshakouri, January 15, 2015, 23:12:28 PM

Previous topic - Next topic

mhshakouri

VM 3.0.3

I need to kinda disable the Name Shopper fields which is included from base joomla user component, from shopper fields. if anyone could help I'd be thankful.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

mhshakouri

Thanks to you! I found it. I created an override on the admin Template, I'm explaining this for others to use in the future.

As you told I took a look at the link you gave me, the steps was to create an override on the userfields view on the admin, means
Quoteadministrator/components/com_virtuemart/views/userfields/tmpl/default.php
after creating the override, I located the
$coreField = (in_array($row->name, $this->lists['coreFields']));
since the $coreField is used below line 88, I thought it's a good idea to make an empty string for it,
so you have to comment the $coreField, as you mentioned with " // " in the beginning of the line and add a new line with empty value

//$coreField = (in_array($row->name, $this->lists['coreFields']));
$coreField = ''; 


That's it, then you can have control over the default items.