<?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: Shortening Increment ID length for Orders, Invoices, and Shipments</title>
	<atom:link href="http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/feed/" rel="self" type="application/rss+xml" />
	<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/</link>
	<description>Classy Llama Studios is a team of developers, designers and marketers specializing in Magento, Wordpress and Custom Web Application development.</description>
	<lastBuildDate>Fri, 03 Feb 2012 06:02:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Djay</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-769</link>
		<dc:creator>Djay</dc:creator>
		<pubDate>Mon, 06 Jun 2011 11:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-769</guid>
		<description>Is better if you can avoid to use an SQL request in an installer :)

$entityType = Mage::getModel(&#039;eav/entity_type&#039;)-&gt;loadByCode(&#039;order&#039;);
$entityType-&gt;setIncrementPadLength(7)-&gt;save();</description>
		<content:encoded><![CDATA[<p>Is better if you can avoid to use an SQL request in an installer <img src='http://classyllama.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>$entityType = Mage::getModel(&#8217;eav/entity_type&#8217;)-&gt;loadByCode(&#8217;order&#8217;);<br />
$entityType-&gt;setIncrementPadLength(7)-&gt;save();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-637</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Thu, 20 Jan 2011 11:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-637</guid>
		<description>Should have said we are on 1.4.1.1</description>
		<content:encoded><![CDATA[<p>Should have said we are on 1.4.1.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-636</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Thu, 20 Jan 2011 11:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-636</guid>
		<description>This worked for me:

UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#039;order&#039;;
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#039;creditmemo&#039;;
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#039;invoice&#039;;
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#039;shipment&#039;;</description>
		<content:encoded><![CDATA[<p>This worked for me:</p>
<p>UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#8216;order&#8217;;<br />
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#8216;creditmemo&#8217;;<br />
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#8216;invoice&#8217;;<br />
UPDATE `eav_entity_type` SET `increment_pad_length`=4 WHERE entity_type_code = &#8217;shipment&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikl</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-614</link>
		<dc:creator>nikl</dc:creator>
		<pubDate>Thu, 18 Nov 2010 13:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-614</guid>
		<description>Use this, manually editIng won&#039;t work:

update `eav_entity_type` set `increment_pad_length`=6 where `entity_type_code`=&#039;order&#039;;</description>
		<content:encoded><![CDATA[<p>Use this, manually editIng won&#8217;t work:</p>
<p>update `eav_entity_type` set `increment_pad_length`=6 where `entity_type_code`=&#8217;order&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nellie</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-544</link>
		<dc:creator>Nellie</dc:creator>
		<pubDate>Wed, 29 Sep 2010 19:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-544</guid>
		<description>Hmm. You know, this didn&#039;t work for us. Do we need to truncate the test orders table first and work with a clean slate? Or do I need to update the last number with the proper length as well for it to work?</description>
		<content:encoded><![CDATA[<p>Hmm. You know, this didn&#8217;t work for us. Do we need to truncate the test orders table first and work with a clean slate? Or do I need to update the last number with the proper length as well for it to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ehansen</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-49</link>
		<dc:creator>ehansen</dc:creator>
		<pubDate>Mon, 28 Dec 2009 21:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-49</guid>
		<description>You should take a look in your sales_order_entity and look for rows with their entity_type_id equalling 16.  If the increment_id field is 7 characters, then the directions worked.</description>
		<content:encoded><![CDATA[<p>You should take a look in your sales_order_entity and look for rows with their entity_type_id equalling 16.  If the increment_id field is 7 characters, then the directions worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krystal</title>
		<link>http://classyllama.com/development/magento-development/shortening-increment-id-length-for-orders-invoices-and-shipments/comment-page-1/#comment-47</link>
		<dc:creator>Krystal</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=171#comment-47</guid>
		<description>Hi,
I posted this on the Magento forum just now as well. I followed the directions here to change the default 8 characters for invoice to 7, and I don’t think it worked for me. My credit card extension only allows 7 characters in the invoice field. So I changed invoice, invoice_item, and invoice_comment under the entity_type_code in my database to 7. I’m still getting an error when I try to post an order that says: “Declined: Field Format Error.” Any suggestions on this?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I posted this on the Magento forum just now as well. I followed the directions here to change the default 8 characters for invoice to 7, and I don’t think it worked for me. My credit card extension only allows 7 characters in the invoice field. So I changed invoice, invoice_item, and invoice_comment under the entity_type_code in my database to 7. I’m still getting an error when I try to post an order that says: “Declined: Field Format Error.” Any suggestions on this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

