Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php <;来源(u模型);对于不工作的客户群_Php_Magento - Fatal编程技术网

Php <;来源(u模型);对于不工作的客户群

Php <;来源(u模型);对于不工作的客户群,php,magento,Php,Magento,我正在构建magento模块。我需要在管理配置中显示可用的客户组。 我在system.xml中使用了以下代码来获取可用的客户群 <customergroup translate="label"> <label>Select Customer Group can view Pricing/Purchase Product</label> <frontend_type>select</frontend_type>

我正在构建magento模块。我需要在管理配置中显示可用的客户组。 我在system.xml中使用了以下代码来获取可用的客户群

 <customergroup translate="label">
      <label>Select Customer Group can view Pricing/Purchase Product</label>
      <frontend_type>select</frontend_type>
      <source_model>customer/group</source_model>
      <sort_order>1</sort_order>
      <show_in_default>1</show_in_default>
      <show_in_website>1</show_in_website>
      <show_in_store>1</show_in_store>                    
 </customergroup>

选择可以查看定价/购买产品的客户组
选择
客户/群体
1
1
1
1
这段代码产生的错误是

无效的方法Mage\u Customer\u Model\u Group::toOptionArray(


有什么方法可以找到客户组的模型吗?

尝试使用
客户/客户属性\u来源\u组
上面的Marius不起作用,我尝试过这个adminhtml/system\u config\u来源\u客户组,它起作用了,但它的显示--请选择--作为第一个选项,我们可以删除第一个选项吗?