<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fundaa.com &#187; Magento</title>
	<atom:link href="http://fundaa.com/category/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://fundaa.com</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 12:46:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>add new fields to customer registration and admin manage customer</title>
		<link>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/</link>
		<comments>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 08:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Solved Issues]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[registration custom fields]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=311</guid>
		<description><![CDATA[<br/>Go through below code and rub sql queries that need to get executed.
INSERT INTO  `eav_attribute` (
`attribute_id` ,
`entity_type_id` ,
`attribute_code` ,
`attribute_model` ,
`backend_model` ,
`backend_type` ,
`backend_table` ,
`frontend_model` ,
`frontend_input` ,
`frontend_label` ,
`frontend_class` ,
`source_model` ,
`is_required` ,
`is_user_defined` ,
`default_value` ,
`is_unique` ,
`note`
)
VALUES (
NULL ,  &#8216;1&#8242;,  &#8216;karat10&#8242;, NULL , NULL ,  &#8216;varchar&#8217;, NULL , NULL ,  &#8216;text&#8217;,  &#8216;Karat 10 &#8216;, NULL ,  &#8221;,  &#8216;1&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8221;
);
After insert query, the attribute generated is my case is 154. Next this attribute needs to be associated to an attribute set, ...]]></description>
			<content:encoded><![CDATA[<br/><p>Go through below code and rub sql queries that need to get executed.</p>
<p>INSERT INTO  `eav_attribute` (<br />
`attribute_id` ,<br />
`entity_type_id` ,<br />
`attribute_code` ,<br />
`attribute_model` ,<br />
`backend_model` ,<br />
`backend_type` ,<br />
`backend_table` ,<br />
`frontend_model` ,<br />
`frontend_input` ,<br />
`frontend_label` ,<br />
`frontend_class` ,<br />
`source_model` ,<br />
`is_required` ,<br />
`is_user_defined` ,<br />
`default_value` ,<br />
`is_unique` ,<br />
`note`<br />
)<br />
VALUES (<br />
NULL ,  &#8216;1&#8242;,  &#8216;karat10&#8242;, NULL , NULL ,  &#8216;varchar&#8217;, NULL , NULL ,  &#8216;text&#8217;,  &#8216;Karat 10 &#8216;, NULL ,  &#8221;,  &#8216;1&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8221;<br />
);</p>
<p>After insert query, the attribute generated is my case is 154. Next this attribute needs to be associated to an attribute set, the sql for this is</p>
<p>INSERT INTO  `eav_entity_attribute` (<br />
`entity_attribute_id` ,<br />
`entity_type_id` ,<br />
`attribute_set_id` ,<br />
`attribute_group_id` ,<br />
`attribute_id` ,<br />
`sort_order`<br />
)<br />
VALUES (<br />
NULL ,  &#8216;1&#8242;,  &#8216;1&#8242;,  &#8216;1&#8242;,  &#8216;154&#8242;,  &#8216;2&#8242;<br />
);</p>
<p>INSERT INTO  `customer_eav_attribute` (<br />
`attribute_id` ,<br />
`is_visible` ,<br />
`input_filter` ,<br />
`multiline_count` ,<br />
`validate_rules` ,<br />
`is_system` ,<br />
`sort_order` ,<br />
`data_model`<br />
)<br />
VALUES (<br />
&#8216;154&#8242;,  &#8216;1&#8242;, NULL ,  &#8216;1&#8242;, NULL ,  &#8216;0&#8242;,  &#8216;0&#8242;, NULL<br />
);</p>
<p>INSERT INTO `customer_eav_attribute_website` (<br />
`attribute_id` ,<br />
`website_id` ,<br />
`is_visible` ,<br />
`is_required` ,<br />
`default_value` ,<br />
`multiline_count`<br />
)<br />
VALUES (<br />
&#8216;154&#8242;,  &#8216;0&#8242;,  &#8216;1&#8242;,  &#8216;0&#8242;, NULL , NULL<br />
);</p>
<p>INSERT INTO  `customer_form_attribute` (<br />
`form_code` ,<br />
`attribute_id`<br />
)<br />
VALUES (<br />
&#8216;adminhtml_customer&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;checkout_register&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;customer_account_create&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;customer_account_edit&#8217;,  &#8216;154&#8242;<br />
)<br />
;</p>
<p>now you can see newly added field in admin manage customer section.</p>
<p>now to add this in registration page add blow code in your registration.phtml where ever you want to display it.</p>
<p>              &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<li>
            	 	<?php<br />
            	 		$attribute = Mage::getModel('eav/config')->getAttribute(&#8216;customer&#8217;,'Karat 10&#8242;);<br />
            	 	?><br />
                    <label for="karat10" class="<?php if($attribute->getIsRequired() == true){?>required<?php } ?>&#8220;><?php if($attribute->getIsRequired() == true){?><em>*</em><?php } ?><?php echo $this->__(&#8216;Karat 10&#8242;) ?></label></p>
<div class="input-box">
<input type="text" name="karat10" id="karat10" value="<?php echo $this->htmlEscape($this->getFormData()->getKarat10()) ?>&#8221; title=&#8221;<?php echo $this->__(&#8216;Karat 10&#8242;) ?>&#8221; class=&#8221;<?php if($attribute->getIsRequired() == true){?>required-entry<?php } ?>&#8221; /></p></div>
</li>
<p>              &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>it is tested on magento 1.6. hope this will help&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento language pack installation tip</title>
		<link>http://fundaa.com/magento/magento-language-pack-installation-tip/</link>
		<comments>http://fundaa.com/magento/magento-language-pack-installation-tip/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 10:28:24 +0000</pubDate>
		<dc:creator>nehalv</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=174</guid>
		<description><![CDATA[<br/>Installing a language pack in magento can be done by selecting the key from the magento commerce or downloading it from a site.
Spanish language key given may be wrong]]></description>
			<content:encoded><![CDATA[<br/><p>If you ever feel the need to install a language pack in magento it can be done by selecting the key from the magento commerce site(extensions) for the respective language pack. However the Spanish language key given (magento-community/Locale_Mage_community_es_MX) may not work hence you can use an alternative mentioned below:<br />
magento-community/Locale_Mage_community_es_MX-1.0.19870.4.5</p>
<p>If the above method of installing a language pack fails then browse to the site mentioned below and download the language pack:</p>
<p>http://www.magentocommerce.com/langs</p>
<p>You will need to install it manually however.</p>
<p>The language can be configured from the configuration menu in the admin by setting the locale.</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/magento/magento-language-pack-installation-tip/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

