<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Customer Group Registration</title>
	<atom:link href="http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php</link>
	<description>The Latest Industry News, Reviews &#38; FAQs</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:29:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sonal</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-2710</link>
		<dc:creator>sonal</dc:creator>
		<pubDate>Thu, 22 Dec 2011 11:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-2710</guid>
		<description>Try this code......It works.....


if($this-&gt;getRequest()-&gt;getPost(&#039;group_id&#039;))
 {
 $customer-&gt;setGroupId($this-&gt;getRequest()-&gt;getPost(&#039;group_id&#039;));
 }
 else
 {
 $customer-&gt;getGroupId();
 }

/*Add this code in AccountController.php of app/code/core/Mage/Customer/controllers/*/</description>
		<content:encoded><![CDATA[<p>Try this code&#8230;&#8230;It works&#8230;..</p>
<p>if($this-&gt;getRequest()-&gt;getPost(&#8216;group_id&#8217;))<br />
 {<br />
 $customer-&gt;setGroupId($this-&gt;getRequest()-&gt;getPost(&#8216;group_id&#8217;));<br />
 }<br />
 else<br />
 {<br />
 $customer-&gt;getGroupId();<br />
 }</p>
<p>/*Add this code in AccountController.php of app/code/core/Mage/Customer/controllers/*/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-2619</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Mon, 28 Nov 2011 12:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-2619</guid>
		<description>Please help how to add

&quot; if($code==’group_id’) {
$customer-&gt;setGroupId($data[&#039;group_id&#039;]);
} else {
$customer-&gt;setData($code, $data[$code]);
}&quot;

This code in magento 1.4.2..please help me where to add this code</description>
		<content:encoded><![CDATA[<p>Please help how to add</p>
<p>&#8221; if($code==’group_id’) {<br />
$customer-&gt;setGroupId($data['group_id']);<br />
} else {<br />
$customer-&gt;setData($code, $data[$code]);<br />
}&#8221;</p>
<p>This code in magento 1.4.2..please help me where to add this code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna Green</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-2319</link>
		<dc:creator>Anna Green</dc:creator>
		<pubDate>Fri, 16 Sep 2011 03:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-2319</guid>
		<description>Easy Peasy - Now Iv got a question for you, I have two store views one with tiered pricing that is only viewable to one customer group, is there a way to redirect customer groups to there appropriate store views on log in?</description>
		<content:encoded><![CDATA[<p>Easy Peasy &#8211; Now Iv got a question for you, I have two store views one with tiered pricing that is only viewable to one customer group, is there a way to redirect customer groups to there appropriate store views on log in?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hafsa</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-2118</link>
		<dc:creator>Hafsa</dc:creator>
		<pubDate>Thu, 28 Jul 2011 11:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-2118</guid>
		<description>Great it works for me thank you so much.</description>
		<content:encoded><![CDATA[<p>Great it works for me thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurie</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-2044</link>
		<dc:creator>Laurie</dc:creator>
		<pubDate>Sun, 10 Jul 2011 01:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-2044</guid>
		<description>I did this and it worked kind of.  when registering it gave me a drop down box with the groups.  I clicked wholesale but when you go to customer info it shows it as signing up as general and no wholesale prices show up.  Also, for wholesale accounts i would like them to give business info and sales tax id, and have an approval process.  do you know how i can do that?
thanks!</description>
		<content:encoded><![CDATA[<p>I did this and it worked kind of.  when registering it gave me a drop down box with the groups.  I clicked wholesale but when you go to customer info it shows it as signing up as general and no wholesale prices show up.  Also, for wholesale accounts i would like them to give business info and sales tax id, and have an approval process.  do you know how i can do that?<br />
thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1963</link>
		<dc:creator>William</dc:creator>
		<pubDate>Mon, 04 Jul 2011 12:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1963</guid>
		<description>Hello
Congratulations on the tutorial, worked perfectly with me.
As we only work with two groups (individual and company) I want to know how overwritten the &quot;select&quot; with &quot;2 radiobuttons.&quot;
graciously.</description>
		<content:encoded><![CDATA[<p>Hello<br />
Congratulations on the tutorial, worked perfectly with me.<br />
As we only work with two groups (individual and company) I want to know how overwritten the &#8220;select&#8221; with &#8220;2 radiobuttons.&#8221;<br />
graciously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Moss</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1767</link>
		<dc:creator>Adam Moss</dc:creator>
		<pubDate>Tue, 10 May 2011 16:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1767</guid>
		<description>I agree that modules are a much better practice. For something as simple as this though, many developers prefer a quick fix. I prefer to think I&#039;m just giving people the code, it&#039;s up to them how they utilize it.</description>
		<content:encoded><![CDATA[<p>I agree that modules are a much better practice. For something as simple as this though, many developers prefer a quick fix. I prefer to think I&#8217;m just giving people the code, it&#8217;s up to them how they utilize it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prattski</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1766</link>
		<dc:creator>Prattski</dc:creator>
		<pubDate>Tue, 10 May 2011 15:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1766</guid>
		<description>Writing modules is amazingly easy, especially when all you need is a config.xml.  Why not rewrite your post so that you teach people how to do it properly instead?  All you will need is 1 extra file in the etc/modules/ directory :)

I&#039;m just a proponent of doing things properly.  I am not keen at all with even utilizing the app/code/local/Mage/ overrides.  It works, but it is dirty, and there&#039;s no way to disable the changes.</description>
		<content:encoded><![CDATA[<p>Writing modules is amazingly easy, especially when all you need is a config.xml.  Why not rewrite your post so that you teach people how to do it properly instead?  All you will need is 1 extra file in the etc/modules/ directory <img src='http://www.e-commercewebdesign.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m just a proponent of doing things properly.  I am not keen at all with even utilizing the app/code/local/Mage/ overrides.  It works, but it is dirty, and there&#8217;s no way to disable the changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Moss</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1764</link>
		<dc:creator>Adam Moss</dc:creator>
		<pubDate>Tue, 10 May 2011 15:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1764</guid>
		<description>Not everyone will know how to write modules, my solution works fine as long as you create config.xml in the local folder.</description>
		<content:encoded><![CDATA[<p>Not everyone will know how to write modules, my solution works fine as long as you create config.xml in the local folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prattski</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1763</link>
		<dc:creator>Prattski</dc:creator>
		<pubDate>Tue, 10 May 2011 14:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1763</guid>
		<description>I would suggest NOT doing what the poster of this article suggests.  You should never overwrite core files, which he has you doing with the Customer core module, editing it&#039;s config.xml.

If you want to do it properly, write your own simple module and add the xml changes to your own config.xml file.  You can then use your own layout xml file and your own template file and keep everything a little separated, should you ever want to remove this functionality.</description>
		<content:encoded><![CDATA[<p>I would suggest NOT doing what the poster of this article suggests.  You should never overwrite core files, which he has you doing with the Customer core module, editing it&#8217;s config.xml.</p>
<p>If you want to do it properly, write your own simple module and add the xml changes to your own config.xml file.  You can then use your own layout xml file and your own template file and keep everything a little separated, should you ever want to remove this functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pol</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1437</link>
		<dc:creator>Pol</dc:creator>
		<pubDate>Fri, 21 Jan 2011 11:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1437</guid>
		<description>Hello, your line:

$customer-&gt;setGroupId($quote-&gt;getData(’customer_group_id’));

doesn&#039;t work. You must retrieve the group_id selected in billing in an appropiate way, and not with $quote-&gt;getData(’customer_group_id’), but How?? I dont know...please try something</description>
		<content:encoded><![CDATA[<p>Hello, your line:</p>
<p>$customer-&gt;setGroupId($quote-&gt;getData(’customer_group_id’));</p>
<p>doesn&#8217;t work. You must retrieve the group_id selected in billing in an appropiate way, and not with $quote-&gt;getData(’customer_group_id’), but How?? I dont know&#8230;please try something</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Jaap</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1405</link>
		<dc:creator>Peter Jaap</dc:creator>
		<pubDate>Thu, 06 Jan 2011 21:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1405</guid>
		<description>Ok, after a few hours of trying several things (I think I created over a hundred accounts in the process), I finally figured out how to implement the customer group select option in the Onepage Checkout.

I take it you already know how to add the field itself to the form; the problem was that it just wasn’t registered. This is how I did it (M1.4.1.1 installation).

1. Copy app/code/core/Mage/Checkout/Model/Type/Onepage.php to app/code/local/Mage/Checkout/Model/Type/Onepage.php to preserve the modifications throughout future upgrades.

2. In the function saveBilling, right at the start, add;
$this-&gt;getQuote()-&gt;setCustomerGroupId($data[’group_id’]);
This is because we need to transfer the variable $data[’group_id’] to another function and this is one of the easiest ways to do that.

3. In the function _prepareNewCustomerQuote, at the end, it says;
$quote-&gt;setCustomer($customer)
-&gt;setCustomerId(true);
Right &lt;b&gt;before&lt;/b&gt; this, add;
$customer-&gt;setGroupId($quote-&gt;getData(’customer_group_id’));

Et voila! The customer group gets stored in the database!</description>
		<content:encoded><![CDATA[<p>Ok, after a few hours of trying several things (I think I created over a hundred accounts in the process), I finally figured out how to implement the customer group select option in the Onepage Checkout.</p>
<p>I take it you already know how to add the field itself to the form; the problem was that it just wasn’t registered. This is how I did it (M1.4.1.1 installation).</p>
<p>1. Copy app/code/core/Mage/Checkout/Model/Type/Onepage.php to app/code/local/Mage/Checkout/Model/Type/Onepage.php to preserve the modifications throughout future upgrades.</p>
<p>2. In the function saveBilling, right at the start, add;<br />
$this-&gt;getQuote()-&gt;setCustomerGroupId($data[’group_id’]);<br />
This is because we need to transfer the variable $data[’group_id’] to another function and this is one of the easiest ways to do that.</p>
<p>3. In the function _prepareNewCustomerQuote, at the end, it says;<br />
$quote-&gt;setCustomer($customer)<br />
-&gt;setCustomerId(true);<br />
Right <b>before</b> this, add;<br />
$customer-&gt;setGroupId($quote-&gt;getData(’customer_group_id’));</p>
<p>Et voila! The customer group gets stored in the database!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Jaap</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1403</link>
		<dc:creator>Peter Jaap</dc:creator>
		<pubDate>Thu, 06 Jan 2011 13:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1403</guid>
		<description>Hi guys,

I fixed the problem. It seems that in Magento 1.4.x the code changed so this doesn&#039;t work as stated above anymore. You also need to add something in AccountController.php.

This is what you do;

1. Copy app/code/core/Mage/Customer/controllers/AccountController.php to app/code/local/Mage/Customer/controllers/AccountController.php to preserve changes done throughout upgrades

2. Open app/code/local/Mage/Customer/controllers/AccountController.php and go to line 267. This line reads; &quot;$customer-&gt;setData($code, $data[$code]);&quot;

3. Change this line into:

if($code==&#039;group_id&#039;) {
	$customer-&gt;setGroupId($data[&#039;group_id&#039;]);
} else {
	$customer-&gt;setData($code, $data[$code]);
}

Save the file and enjoy! I will look into the onepage problem as well in a day or so.</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>I fixed the problem. It seems that in Magento 1.4.x the code changed so this doesn&#8217;t work as stated above anymore. You also need to add something in AccountController.php.</p>
<p>This is what you do;</p>
<p>1. Copy app/code/core/Mage/Customer/controllers/AccountController.php to app/code/local/Mage/Customer/controllers/AccountController.php to preserve changes done throughout upgrades</p>
<p>2. Open app/code/local/Mage/Customer/controllers/AccountController.php and go to line 267. This line reads; &#8220;$customer-&gt;setData($code, $data[$code]);&#8221;</p>
<p>3. Change this line into:</p>
<p>if($code==&#8217;group_id&#8217;) {<br />
	$customer-&gt;setGroupId($data['group_id']);<br />
} else {<br />
	$customer-&gt;setData($code, $data[$code]);<br />
}</p>
<p>Save the file and enjoy! I will look into the onepage problem as well in a day or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeplin</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1387</link>
		<dc:creator>zeplin</dc:creator>
		<pubDate>Thu, 30 Dec 2010 00:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1387</guid>
		<description>I followed every step and can&#039;t get it to work. Everything works except when I go in the backend and manage customers it looks like the customers are in placed in the general customer group? Can someone help?</description>
		<content:encoded><![CDATA[<p>I followed every step and can&#8217;t get it to work. Everything works except when I go in the backend and manage customers it looks like the customers are in placed in the general customer group? Can someone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1258</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 25 Oct 2010 16:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1258</guid>
		<description>This was really helpful but I also need to add it to the one page checkout and I can&#039;t get it to work.  Like Thomas I can add the dropdown without a problem but I can&#039;t get it to save the data.  Did anyone have any luck with this?</description>
		<content:encoded><![CDATA[<p>This was really helpful but I also need to add it to the one page checkout and I can&#8217;t get it to work.  Like Thomas I can add the dropdown without a problem but I can&#8217;t get it to save the data.  Did anyone have any luck with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-1111</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 31 Aug 2010 14:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-1111</guid>
		<description>Hi
Thank you for this, it&#039;s really easy to do.

Have you an idea how to add the group when you are on &quot;one page checkout&quot;?
It&#039;s easy to display the select with differents groups, but the data isn&#039;t registred :(


i tried to add 11 in app/code/core/Mage/Checkout/etc/config.xml but didn&#039;t work :(</description>
		<content:encoded><![CDATA[<p>Hi<br />
Thank you for this, it&#8217;s really easy to do.</p>
<p>Have you an idea how to add the group when you are on &#8220;one page checkout&#8221;?<br />
It&#8217;s easy to display the select with differents groups, but the data isn&#8217;t registred <img src='http://www.e-commercewebdesign.co.uk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>i tried to add 11 in app/code/core/Mage/Checkout/etc/config.xml but didn&#8217;t work <img src='http://www.e-commercewebdesign.co.uk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Moss</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-960</link>
		<dc:creator>Adam Moss</dc:creator>
		<pubDate>Tue, 08 Jun 2010 15:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-960</guid>
		<description>CodeSoda, thanks for your correction. I have updated the post with the correct file location.</description>
		<content:encoded><![CDATA[<p>CodeSoda, thanks for your correction. I have updated the post with the correct file location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeSoda</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-889</link>
		<dc:creator>CodeSoda</dc:creator>
		<pubDate>Tue, 11 May 2010 17:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-889</guid>
		<description>actually i was able to get this to work correctly, instead of looking for a config.xml in teh layouts, i added it to app\code\code\Mage\Customer\etc\config.xml

under line 96, just an fyi for anyone else, btw thanks for the info</description>
		<content:encoded><![CDATA[<p>actually i was able to get this to work correctly, instead of looking for a config.xml in teh layouts, i added it to app\code\code\Mage\Customer\etc\config.xml</p>
<p>under line 96, just an fyi for anyone else, btw thanks for the info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeSoda</title>
		<link>http://www.e-commercewebdesign.co.uk/blog/magento/customer-group-registration.php/comment-page-1#comment-888</link>
		<dc:creator>CodeSoda</dc:creator>
		<pubDate>Tue, 11 May 2010 16:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.e-commercewebdesign.co.uk/blog/?p=102#comment-888</guid>
		<description>Ello,

Im using ver. 1.3.2.4 and I cannot locate a config.xml in the layout folder, is there another xml that I can place this onto? The 2nd part of your post I can get to show, but it doesn&#039;t submit with the customer sign up form, and I&#039;m assuming it may have to be something with the xml (although im not sure why you have all &quot;1&quot; on the values, i possible could you explain a little more?)</description>
		<content:encoded><![CDATA[<p>Ello,</p>
<p>Im using ver. 1.3.2.4 and I cannot locate a config.xml in the layout folder, is there another xml that I can place this onto? The 2nd part of your post I can get to show, but it doesn&#8217;t submit with the customer sign up form, and I&#8217;m assuming it may have to be something with the xml (although im not sure why you have all &#8220;1&#8243; on the values, i possible could you explain a little more?)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

