<?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>forge.prestashop &#8211; My Web Development</title>
	<atom:link href="https://mywebdevelopment.org/tag/forge-prestashop/feed/" rel="self" type="application/rss+xml" />
	<link>https://mywebdevelopment.org</link>
	<description>Always learning something new..</description>
	<lastBuildDate>Thu, 29 Aug 2013 22:07:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Invoice Displays Incorrect State Abbreviation</title>
		<link>https://mywebdevelopment.org/state-abbreviation-incorrect-on-customer-acknowledgment-email/</link>
				<pubDate>Tue, 22 Jan 2013 23:23:42 +0000</pubDate>
		<dc:creator><![CDATA[Elias]]></dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[forge.prestashop]]></category>

		<guid isPermaLink="false">http://mywebdevelopment.org/?p=198</guid>
				<description><![CDATA[<p>As stated in the bug report, state abbreviation displays the first two letters of the State and not the abbreviation assigned within the customer acknowledgment email. For example, Texas is listed as TE and not TX.  The first to letters are used, instead.. To fix this bug, locate the PDF.php file located here: classes/PDF.php Line… <span class="read-more"><a href="https://mywebdevelopment.org/state-abbreviation-incorrect-on-customer-acknowledgment-email/">Read More &#187;</a></span></p>
<p>The post <a rel="nofollow" href="https://mywebdevelopment.org/state-abbreviation-incorrect-on-customer-acknowledgment-email/">Invoice Displays Incorrect State Abbreviation</a> appeared first on <a rel="nofollow" href="https://mywebdevelopment.org">My Web Development</a>.</p>
]]></description>
								<content:encoded><![CDATA[<p>As stated in the <a title="US States abbreviations on invoices are incorrect" href="http://forge.prestashop.com/browse/PSCFI-3177" target="_blank">bug report</a>, state abbreviation displays the first two letters of the State and not the abbreviation assigned within the customer acknowledgment email. For example, Texas is listed as TE and not TX.  The first to letters are used, instead..</p>
<p>To fix this bug, locate the PDF.php file located here: classes/PDF.php</p>
<p>Line 436: add a blank line after {</p>
<p>Line 461: remove the following code:</p>
<table cellspacing="0">
<tbody>
<tr>
<td>$state = &amp;$addressType[$type][&#8216;addressFormatedValues&#8217;][$pattern];</td>
</tr>
<tr>
<td>$state = strtoupper(substr($state, 0, 2));</td>
</tr>
</tbody>
</table>
<p>.. and replace with the following code:</p>
<table cellspacing="0">
<tbody>
<tr>
<td>$state_name = &amp;$addressType[$type][&#8216;addressFormatedValues&#8217;][$pattern];</td>
</tr>
<tr>
<td>$state = new State((int)State::getIdByName($state_name));</td>
</tr>
<tr>
<td>if (Validate::isLoadedObject($state))</td>
</tr>
<tr>
<td>$state_name = $state-&gt;iso_code;</td>
</tr>
<tr>
<td>else</td>
</tr>
<tr>
<td>$state_name = strtoupper(substr($state_name, 0, 2));</td>
</tr>
</tbody>
</table>
<p>You can view the <a title="US STates abbreviations are incorrect" href="http://scm.prestashop.com/changelog/PrestaShop_v.1.4?cs=80d707722a8603aa42068a433d9eeffa0d2a5f45" target="_blank">Bug Fix Here</a> on the SCM.PrestaShop.com</p>
<hr />
<p><strong>Resources</strong></p>
<p>Bug Tracker, US states abbreviations on invoices are incorrect: <a title="Bug Tracker US State Abbreviations display incorrect" href="http://forge.prestashop.com/browse/PSCFI-317 -US7" target="_blank">http://forge.prestashop.com/browse/PSCFI-317 -US7</a><br />
PDF Bug Fixed: #PSCFI-3254 &#8211; US States Abbreviations are incorrect: <a title="PDF Bug Fix #PSCFI-3254" href="http://scm.prestashop.com/changelog/PrestaShop_v.1.4?cs=80d707722a8603aa42068a433d9eeffa0d2a5f45" target="_blank">http://scm.prestashop.com/changelog/PrestaShop_v.1.4?cs=80d707722a8603aa42068a433d9eeffa0d2a5f45</a></p>
 <script type="text/javascript"><!--
google_ad_client = "ca-pub-9218567626174444";
/* My Web Dev Resources */
google_ad_slot = "3283801538";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p>The post <a rel="nofollow" href="https://mywebdevelopment.org/state-abbreviation-incorrect-on-customer-acknowledgment-email/">Invoice Displays Incorrect State Abbreviation</a> appeared first on <a rel="nofollow" href="https://mywebdevelopment.org">My Web Development</a>.</p>
]]></content:encoded>
										</item>
	</channel>
</rss>
