<?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 : Customizing URL for digital product</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Customizing URL for digital product]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 16:13:51 +0000</pubDate>
  <lastBuildDate>Tue, 17 Apr 2007 17:10:20 +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=739</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[Customizing URL for digital product : I am trying to customize the product...]]></title>
   <link>https://forum.productcart.com/customizing-url-for-digital-product_topic739_post2172.html#2172</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=495">corduroy</a><br /><strong>Subject:</strong> 739<br /><strong>Posted:</strong> 17-April-2007 at 5:10pm<br /><br /><P>I am trying to customize the product download URL delivered in the customer email confirmation.&nbsp; I am trying to create a custom link that retrieves fields from the DB but generate a different URL - to our online product.&nbsp; I've listed the code below; for some reason, it does not recognize the new code I added to overwrite the URL.&nbsp; It just sends the standard URL when I test it.&nbsp; Much thanks to anyone that responds.</P><P>&nbsp;</P><FONT size=2><P>'********************************************************</P><P>'* START - DIGITAL PRODUCTS</P><P>'* If the order contains digital products and the order</P><P>'* status is "processed", then include license/link info</P><P>'********************************************************</P><P>IF DPOrder="1" AND pOrderStatus="3" then</P><P>query="select * from ProductsOrdered WHERE idOrder="&amp; qry_ID</P><P>pidorder=qry_ID</P><P>set rs11=connTemp.execute(query)</P><P>if err.number&lt;&gt;0 then</P><P>'//Logs error to the database</P><P>call LogErrorToDatabase()</P><P>'//clear any objects</P><P>set rs11=nothing</P><P>'//close any connections</P><P>call closedb()</P><P>'//redirect to error page</P><P>response.redirect "techErr.asp?err="&amp;pcStrCustRefID</P><P>end if</P><P>do while not rs11.eof</P><P>query="select * from Products,DProducts where products.idproduct=" &amp; rs11("idproduct") &amp; " and DProducts.idproduct=Products.idproduct and products.downloadable=1"</P><P>set rs=connTemp.execute(query)</P><P>if err.number&lt;&gt;0 then</P><P>'//Logs error to the database</P><P>call LogErrorToDatabase()</P><P>'//clear any objects</P><P>set rs=nothing</P><P>'//close any connections</P><P>call closedb()</P><P>'//redirect to error page</P><P>response.redirect "techErr.asp?err="&amp;pcStrCustRefID</P><P>end if</P><P>if not rs.eof then</P><P>pIdproduct=rs11("idproduct")</P><P>pProductName=rs("Description")</P><P>pURLExpire=rs("URLExpire")</P><P>pExpireDays=rs("ExpireDays")</P><P>pLicense=rs("License")</P><P>pLL1=rs("LicenseLabel1")</P><P>pLL2=rs("LicenseLabel2")</P><P>pLL3=rs("LicenseLabel3")</P><P>pLL4=rs("LicenseLabel4")</P><P>pLL5=rs("LicenseLabel5")</P><P>pAddtoMail=rs("AddtoMail")</P><P>pSku = rs("sku") 'hu April 17</P><P>query="select RequestSTR from DPRequests where idproduct=" &amp; rs11("idproduct") &amp; " and idorder=" &amp; pidorder &amp; " and idcustomer=" &amp; pidcustomer</P><P>set rs19=connTemp.execute(query)</P><P>if err.number&lt;&gt;0 then</P><P>'//Logs error to the database</P><P>call LogErrorToDatabase()</P><P>'//clear any objects</P><P>set rs19=nothing</P><P>'//close any connections</P><P>call closedb()</P><P>'//redirect to error page</P><P>response.redirect "techErr.asp?err="&amp;pcStrCustRefID</P><P>end if</P><P>pdownloadStr=rs19("RequestSTR")</P><P>SPath1=Request.ServerVariables("PATH_INFO")</P><P>mycount1=0</P><P>do while mycount1&lt;2</P><P>if mid(SPath1,len(SPath1),1)="/" then</P><P>mycount1=mycount1+1</P><P>end if</P><P>if mycount1&lt;2 then</P><P>SPath1=mid(SPath1,1,len(SPath1)-1)</P><P>end if</P><P>loop</P><P>SPathInfo="http://" &amp; Request.ServerVariables("HTTP_HOST") &amp; SPath1</P><P>if Right(SPathInfo,1)="/" then</P><P>pdownloadStr=SPathInfo &amp; "pc/pcdownload.asp?id=" &amp; pdownloadStr</P><P>else</P><P>pdownloadStr=SPathInfo &amp; "/pc/pcdownload.asp?id=" &amp; pdownloadStr</P><P>end if</P><P>&nbsp;</P><P>&nbsp;</P><P>'/hu April 17, 2007</P><P>query="select idProductOrdered from ProductOrdered where idproduct=" &amp; rs11("idproduct") &amp; " and idorder=" &amp; pidorder</P><P>set rsHu=connTemp.execute(query)</P><P>if err.number&lt;&gt;0 then</P><P>'//Logs error to the database</P><P>call LogErrorToDatabase()</P><P>'//clear any objects</P><P>set rsHu=nothing</P><P>'//close any connections</P><P>call closedb()</P><P>'//redirect to error page</P><P>response.redirect "techErr.asp?err="&amp;pcStrCustRefID</P><P>end if</P><P>SPathInfo=scSSLUrl '"http://product.myurl.net/" 'scSSLUrl</P><P>pdownloadStr =SPathInfo &amp; "?ProductOrderId=" &amp; trim(rsHu("idProductOrdered")) &amp; "&amp;productcode=" &amp; trim(pSku) &amp; "&amp;username=" &amp; gRegemail &amp; "&amp;id=" &amp; rs19("RequestSTR")</P><P> '?ProductOrderId=50&amp;username=spark@earlyimpact.com&amp;p assword=''&amp;productcode=DL-benchmarker </P><P>'/end hu</P><P>&nbsp;</P><P>CustomerEmail=customerEmail &amp;  "=========================================================== ===========" &amp; vbcrlf &amp; vbcrlf</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_28") &amp; pProductName &amp; vbcrlf &amp; vbcrlf</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_29")</P><P>if (pURLExpire&lt;&gt;"") and (pURLExpire="1") then</P><P>if date()-(CDate(pprocessDate)+pExpireDays)&lt;0 then</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_30") &amp; (CDate(pprocessDate)+pExpireDays)-date() &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_31") &amp; vbcrlf &amp; vbcrlf</P><P>else</P><P>if date()-(CDate(pprocessDate)+pExpireDays)=0 then</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_32") &amp; vbcrlf &amp; vbcrlf</P><P>else</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_33") &amp; vbcrlf &amp; vbcrlf</P><P>end if</P><P>end if</P><P>else</P><P>CustomerEmail=CustomerEmail &amp; ":" &amp; vbcrlf &amp; vbcrlf</P><P>end if</P><P>CustomerEmail=CustomerEmail &amp; pdownloadStr &amp; vbcrlf &amp;vbcrlf</P><P>if (pLicense&lt;&gt;"") and (pLicense="1") then</P><P>query="select * from DPLicenses where idproduct=" &amp; rs11("idproduct") &amp; " and idorder=" &amp; pidorder</P><P>set rs19=connTemp.execute(query)</P><P>if err.number&lt;&gt;0 then</P><P>'//Logs error to the database</P><P>call LogErrorToDatabase()</P><P>'//clear any objects</P><P>set rs19=nothing</P><P>'//close any connections</P><P>call closedb()</P><P>'//redirect to error page</P><P>response.redirect "techErr.asp?err="&amp;pcStrCustRefID</P><P>end if</P><P>TempLicStr=""</P><P>do while not rs19.eof</P><P>TempLic=""</P><P>Lic1=rs19("Lic1")</P><P>if Lic1&lt;&gt;"" then</P><P>TempLic=TempLic &amp; pLL1 &amp; ": " &amp; Lic1 &amp; vbcrlf</P><P>end if</P><P>Lic2=rs19("Lic2")</P><P>if Lic2&lt;&gt;"" then</P><P>TempLic=TempLic &amp; pLL2 &amp; ": " &amp; Lic2 &amp; vbcrlf</P><P>end if</P><P>Lic3=rs19("Lic3")</P><P>if Lic3&lt;&gt;"" then</P><P>TempLic=TempLic &amp; pLL3 &amp; ": " &amp; Lic3 &amp; vbcrlf</P><P>end if</P><P>Lic4=rs19("Lic4")</P><P>if Lic4&lt;&gt;"" then</P><P>TempLic=TempLic &amp; pLL4 &amp; ": " &amp; Lic4 &amp; vbcrlf</P><P>end if</P><P>Lic5=rs19("Lic5")</P><P>if Lic5&lt;&gt;"" then</P><P>TempLic=TempLic &amp; pLL5 &amp; ": " &amp; Lic5 &amp; vbcrlf</P><P>end if</P><P>if TempLic&lt;&gt;"" then</P><P>TempLic=TempLic &amp; vbcrlf</P><P>TempLicStr=TempLicStr &amp; TempLic</P><P>end if</P><P>rs19.movenext</P><P>loop</P><P>if TempLicStr&lt;&gt;"" then</P><P> TempLicStr=dictLanguage.Item(Session("language")&amp;"_sendM ail_34") &amp; vbcrlf &amp; vbcrlf &amp; TempLicStr</P><P>CustomerEmail=customerEmail &amp; TempLicStr &amp; vbcrlf</P><P>end if</P><P>end if</P><P>if pAddtoMail&lt;&gt;"" then</P><P>CustomerEmail=customerEmail &amp; dictLanguage.Item(Session("language")&amp;"_sendMail_35") &amp; vbcrlf &amp; vbcrlf &amp; pAddtoMail &amp; vbcrlf &amp; vbcrlf</P><P>end if</P><P>end if</P><P>rs11.MoveNext</P><P>loop</P><P>CustomerEmail=customerEmail &amp;  "=========================================================== ===========" &amp; vbcrlf &amp; vbcrlf</P><P>end if</P><P>'********************************************************</P><P>'* END - DIGITAL PRODUCTS</P><P>'********************************************************</P></FONT>]]>
   </description>
   <pubDate>Tue, 17 Apr 2007 17:10:20 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/customizing-url-for-digital-product_topic739_post2172.html#2172</guid>
  </item> 
 </channel>
</rss>