<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : Prohibiting Post Office boxes from validating</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Prohibiting Post Office boxes from validating]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 13:32:50 +0000</pubDate>
  <lastBuildDate>Fri, 11 Jan 2013 07:38:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=5405</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[Prohibiting Post Office boxes from validating : We actually implemented something...]]></title>
   <link>https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20694.html#20694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 5405<br /><strong>Posted:</strong> 11-January-2013 at 7:38am<br /><br />We actually implemented something to address this, but in the end, and with all respect to Sean's helpful post, it was a bit more complex than he proposes.&nbsp; I'm not in a position to go grab the code and paste it here, as it actually involved 2 hours of coding.&nbsp; <DIV>&nbsp;</DIV><DIV>What I recall we discovered was that even though something like the above approach seemed desirable, there is logic in OPC that defeated us in that regard.&nbsp; I beleive that what happened was that we'd get the desired error message, but then the checkout process would blast past our error and head off to the&nbsp;shipping options portion of OPC.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>We ended up establishing a block of code in opc_chooseShpmnt.asp that tests pcCustSession_ShippingAddress from the pcCustomerSessions table, and thus addresses the issue.</DIV><DIV>&nbsp;</DIV><DIV>If you find that the above approach is not successful, tap on me (via my site) next week and we can help sort this out&nbsp;for you.</DIV>]]>
   </description>
   <pubDate>Fri, 11 Jan 2013 07:38:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20694.html#20694</guid>
  </item> 
  <item>
   <title><![CDATA[Prohibiting Post Office boxes from validating : Ok, I had a quick look under the...]]></title>
   <link>https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20677.html#20677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5405<br /><strong>Posted:</strong> 10-January-2013 at 5:58pm<br /><br />Ok, I had a quick look under the hood here, and this is what I see:<div><br></div><div>First of all, you have the name of the variable slightly incorrect here. But handling it here is not the best place as this catches the "error" after the silent post back and then I find that all of the fields the user filled out on shipping info get lost and have to be re-entered. Not particularly elegant.</div><div><br></div><div>However, if handling it here, this is what you'd want. Find:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if pcStrShippingAddress="" then</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>pcErrMsg=pcErrMsg &amp; "&lt;li&gt;"&amp;dictLanguage.Item(Session("language")&amp;"_opc_72")&amp;"&lt;/li&gt;"</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>end if</div></div><div></pre></td></tr></table></div><div>Right below that, add:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if InStr(LCase(pcStrShippingAddress),"po box") &gt; 0 OR InStr(LCase(pcStrShippingAddress),"pobox") &gt; 0 OR InStr(LCase(pcStrShippingAddress),"p.o.") &gt; 0 then</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>pcErrMsg=pcErrMsg &amp; "&lt;li&gt;"&amp;"You may not ship to a Post Office Box"&amp;"&lt;/li&gt;"</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>end if</div><div></pre></td></tr></table></div><div><br></div><div>It would be better to handle it on onepagecheckoutJS.asp, though. However, that's more complicated and would take me some head-scratching time to sort out.</div>]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 17:58:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20677.html#20677</guid>
  </item> 
  <item>
   <title><![CDATA[Prohibiting Post Office boxes from validating : So I&amp;#039;m adding the following...]]></title>
   <link>https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20676.html#20676</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2870">hotshotsecret</a><br /><strong>Subject:</strong> 5405<br /><strong>Posted:</strong> 10-January-2013 at 4:30pm<br /><br />So I'm adding the following to line 75 or thereabouts, and it's not working yet. Continues to load shipping rates:&nbsp;<div><br></div><div><div>if InStr(LCase(pcShippingAddress),"po box") &gt; 0 OR InStr(LCase(pcShippingAddress),"pobox") &gt; 0 then pcErrMsg=pcErrMsg &amp; "&lt;li&gt;Street Address is not valid&lt;/li&gt;" end if</div></div><div><br></div><div>Thanks for the quick response!</div>]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 16:30:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20676.html#20676</guid>
  </item> 
  <item>
   <title><![CDATA[Prohibiting Post Office boxes from validating : Hi @hotshotsecret,I think you&amp;#039;d...]]></title>
   <link>https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20674.html#20674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5405<br /><strong>Posted:</strong> 10-January-2013 at 4:17pm<br /><br />Hi @hotshotsecret,<div><br></div><div>I think you'd want this argument instead:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><span style="font-family: Tahoma, sans-serif; font-size: 13px; line-height: 18px; : rgb251, 251, 253;">if InStr(LCase(pcShippingAddress),"po box") &gt; 0 OR&nbsp;</span><span style=": rgb251, 251, 253; font-family: Tahoma, sans-serif; font-size: 13px; line-height: 18px;">InStr(LCase(pcShippingAddress),"pobox") &gt; 0</span><span style=": rgb251, 251, 253; font-family: Tahoma, sans-serif; font-size: 13px; line-height: 18px;">&nbsp;then</span></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 16:17:20 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20674.html#20674</guid>
  </item> 
  <item>
   <title><![CDATA[Prohibiting Post Office boxes from validating : Due to restrictions with our FedEx...]]></title>
   <link>https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20672.html#20672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2870">hotshotsecret</a><br /><strong>Subject:</strong> 5405<br /><strong>Posted:</strong> 10-January-2013 at 4:03pm<br /><br />Due to restrictions with our FedEx shipping manager in Quickbooks, we would like to force an actual street address in the 'ship to' section of the cart.<div><br></div><div>Here is what I have so far with the code (found in opc_updshipaddr.asp):<br><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">ifpcShippingAddress="PO Box" then<br>pcErrMsg=pcErrMsg &amp; "&lt;li&gt;Street Address is notvalid&lt;/li&gt;"<br>end if</span></div><div><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA"><br></span></div><div><font face="Tahoma, sans-serif" size="2">Hopefully I'm on the right track &amp; not&nbsp;<span style="line-height: 18px;">over-thinking</span>&nbsp;it...</font></div><div><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;  mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">Thanks!</span></div>]]>
   </description>
   <pubDate>Thu, 10 Jan 2013 16:03:31 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/prohibiting-post-office-boxes-from-validating_topic5405_post20672.html#20672</guid>
  </item> 
 </channel>
</rss>