<?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/barcodes/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/category/barcodes/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Mon, 23 Jun 2014 13:10:29 +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>Generate EAN Barcodes for All Magento Products &#8211; Magento EAN Barcode Generator</title>
		<link>https://blog.gaiterjones.com/generate-ean-barcodes-for-all-magento-products-magento-ean-barcode-generator/</link>
					<comments>https://blog.gaiterjones.com/generate-ean-barcodes-for-all-magento-products-magento-ean-barcode-generator/#comments</comments>
		
		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 13:09:07 +0000</pubDate>
				<category><![CDATA[5 Minute Fix]]></category>
		<category><![CDATA[Barcodes]]></category>
		<category><![CDATA[Magento]]></category>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=824</guid>

					<description><![CDATA[Generate EAN Barcodes for All Magento Products Following on from my post about mass exporting Magento data, I had the requirement to also mass generate EAN13 barcodes from scratch for...<a class="more-link" href="https://blog.gaiterjones.com/generate-ean-barcodes-for-all-magento-products-magento-ean-barcode-generator/" title="Continue reading">Continue reading</a>]]></description>
										<content:encoded><![CDATA[<h1><img decoding="async" class="hang-2-column     alignnone" title="EAN13 Barcode for Magento Product" src="http://dev.gaiterjones.com/magento/myexport/ean/images/0123456000162.png" alt="" width="155" height="86" />Generate EAN Barcodes for All Magento Products</h1>
<p>Following on from my <a title="Magento Mass Import and Export of Product Unit Price and Tier Price Changes" href="https://blog.gaiterjones.com/magento-mass-import-and-export-of-product-unit-price-and-tier-price-changes/" target="_blank">post about mass exporting Magento data</a>, I had the requirement to also mass generate <a href="http://en.wikipedia.org/wiki/International_Article_Number_(EAN)" target="_blank">EAN13</a> barcodes from scratch for all Magento products in a store.</p>
<p>The barcode graphic functionality came courtesy of <a href="http://www.ashberg.de/php-barcode" target="_blank">Folke Ashberg</a> and I simply added the functionality to my basic <a title="Magento Mass Import and Export of Product Unit Price and Tier Price Changes" href="https://blog.gaiterjones.com/magento-mass-import-and-export-of-product-unit-price-and-tier-price-changes/" target="_blank">export php script</a>.</p>
<p>The script creates the EAN code and checksum (currently programmed for EAN13) using the a 5 digit product number derived from the Magento product id and your registered manufacturer code. The barcode image is generated on the fly and cached locally.</p>
<p>My requirement was to generate the EAN code and not the barcode image so I am not 100% if the image is to the EAN standard, I think the font may need to be changed, however if you require EAN numbers and images, e.g. for Amazon etc. then this is a good place to start!</p>
<h1>Magento EAN Generator</h1>
<p>You can download a standalone version of my Magento EAN Generator from GitHub <a href="https://github.com/gaiterjones/magento-ean-generator" target="_blank">here</a>. Install the code in a web accessible folder, or in your Magento installation folder. Open the application config file and configure the correct path to your Magento installation. Also configure your EAN prefix code.</p>
<p>Run the script by browsing to http://www.yoursite/eaninstallfolder/ean.php?export, this will generate a delimited txt file containing SKU and EAN13 code for all visible products in your store.</p>
<p>Or run the script from the command line using</p>
<p>php php.ean debug</p>
<p>&lt; MAGENTO EAN -&gt; D E B U G &gt;<br />
Exporting EAN data for 64 Magento product/s &#8230;<br />
Data file created at /home/www/dev/magento/myexport/eanexporttest.csv<br />
Export finished.</p>
<p>&nbsp;</p>
<p>Configure a writeable folder for the data file in config.</p>
<p>The CSV file contains the EAN data</p>
<p>sku,ean<br />
COOLSAUCE1,1234567001746<br />
Honeypot-1,1234567001739<br />
gaiterjones-1,1234567001715<br />
HTC Touch Diamond,1234567001661<br />
mycomputer,1234567001654<br />
computer_fixed,1234567001647<br />
computer,1234567001630<br />
micronmouse5000,1234567001623<br />
logidinovo,1234567001616<br />
logitechcord,1234567001609<br />
microsoftnatural,1234567001593</p>
<p>You can see an example of the scripts output <a href="http://dev.gaiterjones.com/magento/myexport/exportAllPricesHTML.php?percentChange=0&amp;percentVAT=0&amp;maxTiersToExport=1&amp;barcode=true&amp;noHeader=1" target="_blank">here</a>.</p>
<figure style="width: 432px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" title="Auto Generated Magento Product EAN13 Barcode" src="http://dev.gaiterjones.com/magento/myexport/ean/images/0123456000179.png" alt="" width="432" height="240" /><figcaption class="wp-caption-text">Auto Generated Magento Product EAN13 Barcode</figcaption></figure>
<p>&nbsp;</p>
<p>You might want to validate the generated EAN codes, specifically to validate the 13th checksum code, do this <a href="http://www.gs1.org/barcodes/support/check_digit_calculator" target="_blank">here</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gaiterjones.com/generate-ean-barcodes-for-all-magento-products-magento-ean-barcode-generator/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
	</channel>
</rss>
