Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/250.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

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 在Magento中选择结帐时的客户组_Php_Magento_Checkout - Fatal编程技术网

Php 在Magento中选择结帐时的客户组

Php 在Magento中选择结帐时的客户组,php,magento,checkout,Php,Magento,Checkout,我正在寻找一种方法,让客户在结账时使用selectbox之类的工具选择customer group。没有找到任何关于这个主题的有用文章。谁能给我指出正确的方向吗 塔克斯 将config.xml从/app/code/core/Mage/Customer/etc/复制到app/code/local/Customer/etc/并进行如下修改(添加组id节点): 这不是登记吗?是的,你是对的,但正如你所知道的,如果一个客户还没有注册,他们应该在结账时先注册,除了客人。是的,当然。在我的情况下,我希望注册

我正在寻找一种方法,让客户在结账时使用selectbox之类的工具选择customer group。没有找到任何关于这个主题的有用文章。谁能给我指出正确的方向吗


塔克斯

config.xml
/app/code/core/Mage/Customer/etc/
复制到
app/code/local/Customer/etc/
并进行如下修改(添加组id节点):


这不是登记吗?是的,你是对的,但正如你所知道的,如果一个客户还没有注册,他们应该在结账时先注册,除了客人。是的,当然。在我的情况下,我希望注册客户能够选择结帐时有不同的客户群。可能吗?
<fieldset>
    ...
    <customer_account>
    <email><create>1</create><update>1</update></email>
    <group_id><create>1</create><update>1</update></group_id> 
    <!-- add above line -->
    </customer_account>
    ...
</fieldset>
<div class="input-box">
   <label for="group_id"><?php echo $this->__('Your customer group') ?>
      <span class="required">*</span>  
   </label>
   <select name="group_id" id="group_id" title="<?php echo $this->__('Customer Groups') ?>" class="validate-group required-entry input-text" />
   <?php $groups = Mage::helper('customer')->getGroups()->toOptionArray(); ?>
   <?php foreach($groups as $group){ ?>
       <option value="<?php print $group['value'] ?>">
           <?php print $group['label'] ?>
       </option>
   <?php } ?>
   </select>
</div>