<?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 : Add to cart from external site</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : Add to cart from external site]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 17:43:27 +0000</pubDate>
  <lastBuildDate>Tue, 27 Mar 2007 13:16:06 +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=634</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[Add to cart from external site : Hey,I solved this by building...]]></title>
   <link>https://forum.productcart.com/add-to-cart-from-external-site_topic634_post2103.html#2103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=442">virtualimage</a><br /><strong>Subject:</strong> 634<br /><strong>Posted:</strong> 27-March-2007 at 1:16pm<br /><br />Hey,<br><br>I solved this by building a "capture" page. The problem is that a session isn't started when trying to add the product. I only have this working with a link, not a form. Here's my code. Some items may not be required.<br><br>&lt;%@language="VBScript"%&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Untitled Document&lt;/title&gt;<br>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br><br>&lt;!--#INCLUDE FILE="../includes/settings.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/storeconstants.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/opendb.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/languages.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/currencyformatinc.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/shipFromSettings.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/taxsettings.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/languages_ship.asp"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/adovbs.inc"--&gt;<br>&lt;!--#INCLUDE FILE="../includes/stringfunctions.asp"--&gt;<br>&lt;!--#include FILE="../includes/ErrorHandler.asp"--&gt; <br>&lt;!--#include FILE="../includes/pcProductOptionsCode.asp"--&gt; <br>&lt;%<br>Response.Buffer = True<br>'-------------------------------<br>' declare local variables<br>'-------------------------------<br><br>Dim conntemp, tIndex, tUpdPrd, pIdCategory, strBreadCrumb, pIdProduct, query, rs, dblpcCC_Price<br>Dim pcv_strViewPrdStyle, pcv_strFormAction, pcv_intValidationFile, pcv_blnBTOisConfig, iRewardPoints, pDescription, pMainProductName<br>Dim pSku, pconfigOnly, pserviceSpec, pPrice, pBtoBPrice, pDetails, pListPrice, plistHidden, pimageUrl, pLgimageURL<br>Dim pArequired, pBrequired, pStock, pWeight, pEmailText, pFormQuantity, pnoshipping, pcustom1, pcontent1<br>Dim pcustom2, pcontent2, pcustom3, pcontent3, pxfield1, px1req, pxfield2, px2req, pxfield3, px3req, pnoprices<br>Dim pIDBrand, psDesc, pNoStock, pnoshippingtext, intIdProduct, intWeight, optionA, optionB<br>Dim pcv_intHideBTOPrice, pcv_intQtyValidate, pcv_lngMinimumQty, intpHideDefConfig, pnotax, BrandName<br>Dim FirstCnt, strDescription, intReward, pcv_BTORP, strConfigProductCategory, dblPrice, dblWPrice, intIdCategory<br>Dim VardiscGo, dblQuantityFrom, dblQuantityUntil, dblPercentage, dblDiscountPerWUnit, dblDiscountPerUnit<br>Dim intIdOptOptGrp, intIdOption, strOptionDescrip, OptInActive, optPrice, tempIdOptA, tempIdOptB<br>Dim xrequired, xfieldCnt, reqstring, TextArea, widthoffield, rowlength<br>Dim scCS, cs_showprod, cs_showcart, cs_showimage, crossSellText<br>Dim pcv_strOptionGroupDesc, pcv_intOptionGroupCount, pcv_strOptionGroupCount, pcv_strOptionGroupID, pcv_strOptionRequired<br>Dim xOptionsCnt, pcv_strNumberValidations, pcv_strFuntionCall, pcv_strReqOptString, xOtionrequired, pcv_strCSDiscounts , pcv_strPrdDiscounts <br>Dim pcv_strProdImage_Url, pcv_strProdImage_LargeUrl, pcv_intProdImage_Columns, pcv_strShowImage_LargeUrl, pcv_strShowImage_Url, pcv_strCurrentUrl<br>Dim pcv_strAdditionalImages, cCounter, pcv_strWishListLink, BTOCharges, pcv_strCSString, pcv_strReqCSString, cs_RequiredIds, xCSCnt<br>Dim iAddDefaultWPrice, iAddDefaultPrice, pcv_intActive<br>'--&gt; open database connection<br>call opendb()<br>%&gt;<br>&lt;!--#include file="pcStartSession.asp"--&gt;<br><br>&nbsp;&nbsp;&nbsp; <br>&lt;% <br>&nbsp;&nbsp;&nbsp; &nbsp;Response.Write Request.QueryString("idproduct")<br>&nbsp;&nbsp;&nbsp;  &nbsp;Response.Redirect("http://66.232.122.250/sgi/pc/instPr d.asp?idproduct="&amp; Request.QueryString("idproduct"))<br>%&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;<br><!--var SymReal&#079;nLoad;var SymReal; Sym(){  window.open = SymWinOpen;  if(SymReal != null)     SymReal();} Sym&#079;nLoad(){  if(SymReal&#079;nLoad != null)     SymReal&#079;nLoad();  window.open = SymRealWinOpen;  SymReal = window.;  window. = Sym;}SymReal&#079;nLoad = window.&#111;nload;window.&#111;nload = Sym&#079;nLoad;//-->]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 13:16:06 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-from-external-site_topic634_post2103.html#2103</guid>
  </item> 
  <item>
   <title><![CDATA[Add to cart from external site : I am having the same problem adding...]]></title>
   <link>https://forum.productcart.com/add-to-cart-from-external-site_topic634_post2100.html#2100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=481">derekw</a><br /><strong>Subject:</strong> 634<br /><strong>Posted:</strong> 26-March-2007 at 2:43pm<br /><br /><P>I am having the same problem adding an item from a page on the same server as the cart.The form&nbsp;I use to add the item is the same as provided in the PC documentation.&nbsp; First you get a "product id not found" error, then when you try the second time it works, and the item is added to the cart.&nbsp;Anybody have a solution?</P>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 14:43:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-from-external-site_topic634_post2100.html#2100</guid>
  </item> 
  <item>
   <title><![CDATA[Add to cart from external site : Hi,I&amp;#039;d like the ability to...]]></title>
   <link>https://forum.productcart.com/add-to-cart-from-external-site_topic634_post1843.html#1843</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=442">virtualimage</a><br /><strong>Subject:</strong> 634<br /><strong>Posted:</strong> 06-February-2007 at 11:12am<br /><br />Hi,<br><br>I'd like the ability to create a link/button on an external site that will add a product to the cart. I receive an error message from PC when I try this.<br><br>Here's the link I tried <a href="http://66.232.122.250/sgi/pc/instPrd.asp?idproduct=14&amp;add=1" target="_blank"> http://66.232.122.250/sgi/pc/instPrd.asp?idproduct=14&amp;ad d=1</a><br><br>If you click this you'll receive an error saying that the item doesn't exist. If you then click it again, the product will be added to your cart. This leads me to believe that it's a session issue. Anyone know a way around this?<br><br>Thanks!<br><br>-Quinn<br><!--var SymReal&#079;nLoad;var SymReal; Sym(){  window.open = SymWinOpen;  if(SymReal != null)     SymReal();} Sym&#079;nLoad(){  if(SymReal&#079;nLoad != null)     SymReal&#079;nLoad();  window.open = SymRealWinOpen;  SymReal = window.;  window. = Sym;}SymReal&#079;nLoad = window.&#111;nload;window.&#111;nload = Sym&#079;nLoad;//-->]]>
   </description>
   <pubDate>Tue, 06 Feb 2007 11:12:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/add-to-cart-from-external-site_topic634_post1843.html#1843</guid>
  </item> 
 </channel>
</rss>