<?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>Agence de Développement Informatique du Nord &#187; attribute_set</title>
	<atom:link href="http://blog.adin.pro/tag/attribute_set/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Magento &#8211; get product attribute set name</title>
		<link>http://blog.adin.pro/2015-06-25/magento-get-product-attribute-set-name/</link>
		<comments>http://blog.adin.pro/2015-06-25/magento-get-product-attribute-set-name/#comments</comments>
		<pubDate>Thu, 25 Jun 2015 12:54:49 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[attribute_set]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=491</guid>
		<description><![CDATA[<p>To retrieve the product attribute set name, I just create this function on the product class</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-25/magento-get-product-attribute-set-name/">Magento &#8211; get product attribute set name</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>To retrieve the product attribute set name, I just create this function on the product class</p>
<pre class="brush: php; title: ; notranslate">
public function getAttributeSetName()
{
   $attributeSetModel = Mage::getModel(&quot;eav/entity_attribute_set&quot;);
   $attributeSetModel-&gt;load($this-&gt;getAttributeSetId());
   return $attributeSetModel-&gt;getAttributeSetName();
}
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-25/magento-get-product-attribute-set-name/">Magento &#8211; get product attribute set name</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-06-25/magento-get-product-attribute-set-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento assign attribute to attribute set</title>
		<link>http://blog.adin.pro/2015-06-11/magento-assign-attribute-to-attribute-set/</link>
		<comments>http://blog.adin.pro/2015-06-11/magento-assign-attribute-to-attribute-set/#comments</comments>
		<pubDate>Thu, 11 Jun 2015 09:22:06 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[attribute_set]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=486</guid>
		<description><![CDATA[<p>This is how to assign an existing attribute to an existing attribute set</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-11/magento-assign-attribute-to-attribute-set/">Magento assign attribute to attribute set</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>This is how to assign an existing attribute to an existing attribute set</p>
<pre class="brush: php; title: ; notranslate">

$setup = new Mage_Catalog_Model_Resource_Eav_Mysql4_Setup('core_setup');
$setup-&gt;startSetup();

$attribute_set_name = ATTRIBUTE_SET_VISIT;
$attribute_code = $attr;
$group_name = GROUP_ADIN;

$attribute_set_id=$setup-&gt;getAttributeSetId('catalog_product', $attribute_set_name);
$attribute_group_id=$setup-&gt;getAttributeGroupId('catalog_product', $attribute_set_id, $group_name);
$attribute_id=$setup-&gt;getAttributeId('catalog_product', $attribute_code);

$setup-&gt;addAttributeToSet($entityTypeId='catalog_product',$attribute_set_id, $attribute_group_id, $attribute_id);
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-11/magento-assign-attribute-to-attribute-set/">Magento assign attribute to attribute set</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-06-11/magento-assign-attribute-to-attribute-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; retrieve attribute set by name</title>
		<link>http://blog.adin.pro/2015-06-03/magento-retrieve-attribute-set-by-name/</link>
		<comments>http://blog.adin.pro/2015-06-03/magento-retrieve-attribute-set-by-name/#comments</comments>
		<pubDate>Wed, 03 Jun 2015 14:02:48 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[attribute_set]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=480</guid>
		<description><![CDATA[<p>Here how to retrieve attribute set by name instead of id</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-03/magento-retrieve-attribute-set-by-name/">Magento &#8211; retrieve attribute set by name</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Here how to retrieve attribute set by name instead of id</p>
<pre class="brush: php; title: ; notranslate">
$name = &quot;Default&quot;
$attribute_set = Mage::getModel(&quot;eav/entity_attribute_set&quot;)-&gt;getCollection();
$set = $attribute_set-&gt;addFieldToFilter(&quot;attribute_set_name&quot;, $name)-&gt;getFirstItem();
echo &quot;id: &quot;.$set-&gt;getAttributeSetId();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2015-06-03/magento-retrieve-attribute-set-by-name/">Magento &#8211; retrieve attribute set by name</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2015-06-03/magento-retrieve-attribute-set-by-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
