<?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 : Phone Number function</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Phone Number function]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 02:08:03 +0000</pubDate>
  <lastBuildDate>Sat, 02 Jul 2011 18:00:16 +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=4592</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[Phone Number function : well, I guess it is not worth...]]></title>
   <link>https://forum.productcart.com/phone-number-function_topic4592_post17899.html#17899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4592<br /><strong>Posted:</strong> 02-July-2011 at 6:00pm<br /><br />well, I guess it is not worth the time to search for:<div><br></div><div>Here is my edit to the stringfunctions.asp file:</div><div>///////////////////////////////////////////////////////////////////////////////////////////</div><div><br></div><div><div>'*****************************************************************************************************</div><div>'// Format display phone numbers</div><div>'*****************************************************************************************************</div><div>Function phoneformat(byVal phonenumber)</div><div><br></div><div>&nbsp; phonenumber = Cstr(phonenumber)</div><div>&nbsp; phonenumber = Trim(phonenumber)</div><div>&nbsp; phonenumber = Replace( phonenumber, " ", "")</div><div>&nbsp; phonenumber = Replace( phonenumber, "-", "")</div><div>&nbsp; phonenumber = Replace( phonenumber, "(", "")</div><div>&nbsp; phonenumber = Replace( phonenumber, ")", "")</div><div>&nbsp; phonenumber = Replace( phonenumber, ".", "")</div><div>&nbsp; phonenumber = Replace( phonenumber, ",", "")</div><div>&nbsp;&nbsp;</div><div>&nbsp; select case LEN(phonenumber) &nbsp;</div><div>&nbsp; Case 10</div><div>&nbsp; &nbsp; tmp = tmp &amp; "(" &amp; mid(phonenumber,1,3) &amp; ") "</div><div>&nbsp; &nbsp; tmp = tmp &amp; mid(phonenumber,4,3) &amp; "-"</div><div>&nbsp; &nbsp; tmp = tmp &amp; mid(phonenumber,7,4)</div><div>&nbsp; case 11</div><div>&nbsp; &nbsp; tmp = tmp &amp; mid(phonenumber,1,1) &amp; " "</div><div>&nbsp; &nbsp; tmp = tmp &amp; "(" &amp; mid(phonenumber,2,3) &amp; ") "</div><div>&nbsp; &nbsp; tmp = tmp &amp; mid(phonenumber,5,3) &amp; "-"</div><div>&nbsp; &nbsp; tmp = tmp &amp; mid(phonenumber,8,4)</div><div>&nbsp; case else</div><div>&nbsp; &nbsp; phoneformat = null</div><div>&nbsp; &nbsp; exit function &nbsp;</div><div>&nbsp; end select</div><div>&nbsp;&nbsp;</div><div>&nbsp; phoneformat = tmp</div><div>end function</div></div><div>////////////////////////////////////////////////////////////////////////</div><div><br></div><div>So any place a phone number is listed this can be added:</div><div><br></div><div><br></div><div>phoneformat(scCompanyPhoneNumber) 'uses phone number listed by store settings.</div><div>or&nbsp;</div><div>phoneformat("8669299626")</div><div><br></div><div>wah la</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Sat, 02 Jul 2011 18:00:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/phone-number-function_topic4592_post17899.html#17899</guid>
  </item> 
  <item>
   <title><![CDATA[Phone Number function : Is there a sub function / function...]]></title>
   <link>https://forum.productcart.com/phone-number-function_topic4592_post17898.html#17898</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1542">joshs</a><br /><strong>Subject:</strong> 4592<br /><strong>Posted:</strong> 02-July-2011 at 5:40pm<br /><br />Is there a sub function / function already built in the system to standardize or format phone numbers?<div><br></div><div>ie.</div><div>8669299626</div><div>to</div><div>(866) 929-9626</div><div><br></div><div>Josh</div>]]>
   </description>
   <pubDate>Sat, 02 Jul 2011 17:40:28 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/phone-number-function_topic4592_post17898.html#17898</guid>
  </item> 
 </channel>
</rss>