<?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>gj |</title>
	<atom:link href="https://blog.gaiterjones.com/category/magento/magento-attribute-export/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/category/magento/magento-attribute-export/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Sun, 24 May 2015 18:13:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>Magento Product Attribute Search and Filter</title>
		<link>https://blog.gaiterjones.com/magento-product-attribute-search-and-filter/</link>
					<comments>https://blog.gaiterjones.com/magento-product-attribute-search-and-filter/#respond</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Fri, 08 Aug 2014 13:26:31 +0000</pubDate>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Magento Attribute Export]]></category>
		<category><![CDATA[Magento Product Attribute Search]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=1216</guid>

					<description><![CDATA[The Magento product database is pretty flexible when it comes to extracting product information. Sometimes however, extracting all the information you want for a product is not so easy. For...<a class="more-link" href="https://blog.gaiterjones.com/magento-product-attribute-search-and-filter/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p>The Magento product database is pretty flexible when it comes to extracting product information. Sometimes however, extracting all the information you want for a product is not so easy.</p>
<p>For example you want to extract the main product info, price, title, SKU etc <em>and</em> all the product attributes names <em>and</em> the product category. This might require multiple product / collection calls and when you multiply this by a search across 1000&#8217;s of products can become slow.</p>
<h2>Magento Product Attribute Search and Filter</h2>
<p>I wanted to provide a quick and easy way to <strong>search and filter magento products by attributes</strong>, in this case by colour, so customers could quickly narrow product selection down by selecting a <strong>colour</strong> and a filtering by <strong>category</strong>.</p>
<p>To extract the data I developed my<a title="Magento Product Data and Attribute Exporter" href="https://blog.gaiterjones.com/magento-product-data-attribute-exporter/"> Magento Product Data and Attribute exporter</a>. This let me initially see how many attributes I had to work with, in this case how many different product colours were already configured.</p>
<p>To make colour selection simpler I created a new Magento attribute <em>product_primary_colour</em> and added a primary colour to each product so that I ended up with about 16 main colours that would provide a match to all the existing product attribute colours.</p>
<p>Once I had all my exported product data in a tab delimited text file I quickly realised that it would be relatively simple to search and filter this data via ajax requests.</p>
<p>I had initially thought it would be more effective to do the search within Magento using product collections but the speed of the search against the delimited txt data file made me think again. When I then added cached search results using Memcache I was happy that this solution would work.</p>
<p>The benefits of using the flat txt file are that it is quick and can run completely external from Magento in another webapp or in WordPress or Facebook.</p>
<p>The Magento attribute search and filter is easily customiseable and can search the data created by the export script filtering results from any of the product data columns in the export file. This could be colour, size, type etc, there are no limits.</p>
<p>If your product data is changing regularly simply export the data regularly via a cron job to keep it up to date.</p>
<p>if you need to filter your data by a completely new attribute simply pull the export data into Excel, create your new attribute data and corresponding Magento attribute and import the data back into Magento. Now you can export this data and easily search and filter it.</p>
<p>Here is an example of the attribute search running in an iframe using the Magento test product data. Here I have exported the color attribute, and am filtering against existing product categories like Womens, Mens and Shirts (note Mens matches Wo<strong>mens, </strong>some refinement needed there!). This will also easily run in Magento when setup in a static block containing the iframe data.</p>
<p>You can see how quickly the data is filtered and returned, try a search for Red to see some data. Click around the categories and check the <strong>debug footer</strong> which shows if the results were cached or not and how long the ajax query took to run.</p>
<h2>Data from Magento DEV Store running Magento 1.9.x</h2>
<div class="iframe-container"><iframe src="https://blog.gaiterjones.com/dropdev/magento-attribute-search"></iframe></div>
<div></div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/magento-product-attribute-search-and-filter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Magento Product Data and Attribute Exporter</title>
		<link>https://blog.gaiterjones.com/magento-product-data-attribute-exporter/</link>
					<comments>https://blog.gaiterjones.com/magento-product-data-attribute-exporter/#respond</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Fri, 08 Aug 2014 12:43:12 +0000</pubDate>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Magento Attribute Export]]></category>
		<category><![CDATA[Magento Product Export]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=1208</guid>

					<description><![CDATA[Over the last few years I have developed a few different PHP scripts to export Magento product data in order to manipulate product pricing, generate Magento  EAN barcodes or create...<a class="more-link" href="https://blog.gaiterjones.com/magento-product-data-attribute-exporter/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<p>Over the last few years I have developed a few different PHP scripts to export Magento product data in order to manipulate product pricing, generate Magento  EAN barcodes or create product import data.</p>
<p>Recently I had to export Magento product data to be used as import data for Amazon product listings. Specifically the products had a lot of different attributes associated with them and I wanted to export each product with all of its associated attribute data to map to the relevant Amazon product data.</p>
<p>To accomplish this I returned to my previous code and enhanced it to be able to export user defined Magento product and attribute data to a delimited text file (as well as creating product EAN barcodes which was a function of the original script.)</p>
<p>The script can extract the usual global product data e.g. price, description etc. as well as any custom product attributes.</p>
<p>The export data is configured in an array;</p>
<p>$_getProductData=array(<br />
&#8216;name&#8217; =&gt; true,<br />
&#8216;description&#8217; =&gt; false,<br />
&#8216;imageurl&#8217; =&gt; true,<br />
&#8216;producturl&#8217; =&gt; true,<br />
&#8216;type&#8217; =&gt; false,<br />
&#8216;ean&#8217; =&gt; false,<br />
&#8216;category&#8217; =&gt; true<br />
);</p>
<p>We set the array key value to true or false for the product data we want to export. The same applies to attribute data:</p>
<p>$_getProductAttributes=array(<br />
&#8216;colour1&#8217; =&gt; &#8216;color&#8217;,<br />
&#8216;custom&#8217; =&gt; &#8216;my_custom_attribute&#8217;<br />
);</p>
<p>So here we are exporting the <strong>color</strong> product attribute as well as a custom attribute.</p>
<p>The tab delimited data is easily imported into Excel for manipulation and further import/export, for example adaption to an Excel format compatible with Amazon product imports.</p>
<p>This data can also become really useful if you want to provide fast external access to your product info for example, in an external app, on Facebook or even within Magento. See my product attribute search app for more information.</p>
<p>You can download the source code for this export script from my <a href="https://github.com/gaiterjones/magento-product-data-and-attribute-csv-exporter" target="_blank">Github</a>.</p>
<p>To run the script copy the files to your server and edit the configuration php file config/applicationConfig.php. Configure the paths to your Magento installation and the folder to export to.</p>
<p>Configure the product arrays by editing php/Application.php, edit $_getProductData and $_getProductAttributes.</p>
<p>To run the script execute it with <strong>php export.php debug</strong> from the command line. To run silently from a cron job leave the debug switch out.</p>
<p>You can also run the script from your web browser if you install it in a web accessible folder.</p>
<p>Here is an example of the output from my Magento dev store ::</p>
<pre>id	sku	name	imageurl	producturl	category	colour1
51	1111	Ottoman	http://dev.gaiterjones.com/magento/media/catalog/product/m/a/magento-red-furniture-set.jpg	http://dev.gaiterjones.com/magento/magento-red-furniture-set.html	Living Room	Red
52	1112	Chair	http://dev.gaiterjones.com/magento/media/catalog/product/m/a/magento-red-furniture-set.jpg	http://dev.gaiterjones.com/magento/magento-red-furniture-set.html	Living Room	Red
53	1113	Couch	http://dev.gaiterjones.com/magento/media/catalog/product/m/a/magento-red-furniture-set.jpg	http://dev.gaiterjones.com/magento/magento-red-furniture-set.html	Living Room	Red
83	cn	CN Clogs Beach/Garden Clog	http://dev.gaiterjones.com/magento/media/catalog/product/c/n/cn-clogs-beach-garden-clog.jpg	http://dev.gaiterjones.com/magento/cn-clogs-beach-garden-clog.html	Mens	xxx
29	cn_3	CN Clogs Beach/Garden Clog	http://dev.gaiterjones.com/magento/media/catalog/product/c/n/cn-clogs-beach-garden-clog.jpg	http://dev.gaiterjones.com/magento/cn-clogs-beach-garden-clog.html	Mens	Blue
84	cn_4	CN Clogs Beach/Garden Clog	http://dev.gaiterjones.com/magento/media/catalog/product/c/n/cn-clogs-beach-garden-clog.jpg	http://dev.gaiterjones.com/magento/cn-clogs-beach-garden-clog.html	Mens	Blue
85	cn_5	CN Clogs Beach/Garden Clog	http://dev.gaiterjones.com/magento/media/catalog/product/c/n/cn-clogs-beach-garden-clog.jpg	http://dev.gaiterjones.com/magento/cn-clogs-beach-garden-clog.html	Mens	Blue
</pre>
<p>xxx</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/magento-product-data-attribute-exporter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
