Hi,
1/ I just tried on my local to be sure, and the code:
if(in_array($fieldName,array('sm_preview','sm_media'))) continue;
Added tight after the code:
foreach ($this->fields as $fieldName => $oneExtraField) {
In the view:
product / show_block_custom_main
Correctly remove the display of the custom product fields from the specifications tab.
So please check that the name you use is the same than the table name in the custom field settings. Another thing, are we talking about custom product fields or custom item fields ? If it is custom item fields so the view to edit is:
product / show_block_custom_item
2/ To check if one of the user groups match to one of the set groups you can use the code:
$user = JFactory::getUser();
$groups = isset($user->groups) ? $user->groups : array();
if(in_array(array('X','Y'),$groups)){
}
Please note that these modifications are customizations, and we generally don't support this kind of requests.
If you are not a developer, you can post your customization request in the commercial jobs section of this forum