<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <blockquote type="cite">
      <pre>Lisa Collins wrote:
&gt;<i> Dear Interchange Gurus,
</i>&gt;<i>
</i>&gt;<i> I am praying someone here can help me because my programming skills
</i>&gt;<i> are next to none and I've been told, "It's so easy!". I have tried so
</i>&gt;<i> many things over the last few days to no avail.
</i>&gt;<i>
</i>&gt;<i> I'm trying to integrate InternationalCheckout.com's code on my site
</i>&gt;<i> [include include/checkout/shopping_cart] but the only example they
</i>&gt;<i> give is in PHP.
</i>&gt;<i>
</i>&gt;<i> How can I do this with Interchange? What would be the equivalent of
</i>&gt;<i> this PHP Code to transfer the shopping cart to them?
</i>&gt;<i>
</i>&gt;<i> From their instructions:
</i>&gt;<i> In order to transmit the contents of your shopping cart to the
</i>&gt;<i> International Checkout page, you&#8217;ll have to send the contents of your
</i>&gt;<i> store&#8217;s
</i>&gt;<i> shopping cart to International Checkout. The following parameters have
</i>&gt;<i> to be passed to our shopping cart in the form of HIDDEN
</i>&gt;<i> elements of HTML.
</i>&gt;<i> ---Just a few parameters from the list which I need:
</i>&gt;<i>
</i>&gt;<i> ItemDescription (ItemDescription1)
</i>&gt;<i> ItemSKU (ItemSKU1)
</i>&gt;<i> ItemQuantity (ItemQuantity1)
</i>&gt;<i> ItemPrice (ItemPrice1)
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i> Sample Code they provided in PHP:
</i>&gt;<i>
</i>&gt;<i> &lt;form name="icForm" id="icForm" method="post"
</i>&gt;<i> action="<a href="https://www.internationalcheckout.com/cart.php%22">https://www.internationalcheckout.com/cart.php"</a>&gt;
</i>&gt;<i> &lt;?php for($i = 1; $i &lt;= TOTAL ITEMS IN YOUR CART; $i++) { ?&gt;
</i>&gt;<i> &lt;input type="hidden" name="ItemDescription&lt;?php echo $i?&gt;" value="ITEM
</i>&gt;<i> DESCRIPTION"&gt;
</i>&gt;<i> &lt;input type="hidden" name="ItemSKU&lt;?php echo $i?&gt;" value="ITEM CODE
</i>&gt;<i> VALUE"&gt;
</i>&gt;<i> &lt;input type="hidden" name="ItemSize&lt;?php echo $i?&gt;" value="ITEM SIZE"&gt;
</i>&gt;<i> &lt;input type="hidden" name="ItemQuantity&lt;?php echo $i?&gt;" value="ITEM
</i>&gt;<i> QUANTITY"&gt;
</i>&gt;<i> &lt;input type="hidden" name="ItemPrice&lt;?php echo $i?&gt;" value="ITEM PRICE"&gt;
</i>&gt;<i> &lt;? } ?&gt;
</i>&gt;<i> &lt;input type="hidden" name="p" value=" YOUR PARTNER VALUE REGISTERED
</i>&gt;<i> WITH US "&gt;
</i>&gt;<i> &lt;/form&gt;
</i>&gt;<i> &lt;script&gt;document.getElementById('icForm').submit();&lt;/script&gt;
</i>&gt;<i>
</i>&gt;<i> ---
</i>&gt;<i> From the above, I'm assuming "value=" would be MY Fields from
</i>&gt;<i> products.txt??
</i>&gt;<i>
</i>&gt;<i>
</i>&gt;<i> I would be SO Grateful to anyone who could tell me how to do this!
</i>
Hi Lisa,

Try something like this. This would be the Interchange equivalent to the
php code.

&lt;form name="icForm" id="icForm" method="post"
action="<a href="https://www.internationalcheckout.com/cart.php%22">https://www.internationalcheckout.com/cart.php"</a>&gt;
[item-list]
&lt;input type="hidden" name="ItemDescription[item-increment]"
value="[item-description]"&gt;
&lt;input type="hidden" name="ItemSKU[item-increment]" value="[item-code]"&gt;
&lt;input type="hidden" name="ItemSize[item-increment]"
value="[item-modifier size]"&gt;
&lt;input type="hidden" name="ItemQuantity[item-increment]"
value="[item-quantity]"&gt;
&lt;input type="hidden" name="ItemPrice[item-increment]" value="[item-price]"&gt;
[/item-list]
&lt;input type="hidden" name="p" value=" YOUR PARTNER VALUE REGISTERED WITH
US "&gt;
&lt;/form&gt;
&lt;script&gt;document.getElementById('icForm').submit();&lt;/script&gt;

Hope this helps,
Chris

-- 
Chris Kershaw
End Point Corp.
Direct Line: 919-249-5356
Fax: 866-281-1373 
<a href="http://www.endpoint.com">http://www.endpoint.com</a>

</pre>
    </blockquote>
    <br>
    <br>
    Dear Chris,<br>
    <br>
    I'm definitely getting closer because items are appearing in the
    page source, Thank You!<br>
    <br>
    However nothing happens when the International Checkout Button is
    clicked.<br>
    I'm thinking&nbsp;
    &lt;script&gt;document.getElementById('icForm').submit();&lt;/script&gt;&nbsp;
    is not quite what Interchange is looking for??<br>
    <br>
    Thanks So Much!!<br>
    <br>
    Lisa<br>
    <br>
    <pre id="line468">&lt;<span class="start-tag">form</span><span class="attribute-name"> name</span>=<span class="attribute-value">"icForm" </span><span class="attribute-name">id</span>=<span class="attribute-value">"icForm" </span><span class="attribute-name">method</span>=<span class="attribute-value">"post"
</span><span class="attribute-name">action</span>=<span class="attribute-value"><a class="moz-txt-link-rfc2396E" href="https://www.internationalcheckout.com/cart.php">"https://www.internationalcheckout.com/cart.php"</a></span>&gt;

&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"ItemDescription1" </span><span class="attribute-name">value</span>=<span class="attribute-value">"RAYMARINE C140W MULTIFUNCTION DISPLAY w/US COASTAL CHARTS"</span>&gt;
&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"ItemSKU1" </span><span class="attribute-name">value</span>=<span class="attribute-value">"34903"</span>&gt;
&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"ItemQuantity1" </span><span class="attribute-name">value</span>=<span class="attribute-value">"1"</span>&gt;
&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"ItemPrice1" </span><span class="attribute-name">value</span>=<span class="attribute-value">"$3,622.37"</span>&gt;

&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"p" </span><span class="attribute-name">value</span>=<span class="attribute-value">"XXXXX"</span>&gt;
&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"image" </span><span class="attribute-name">src</span><span>="</span><a href="view-source:https://www.ultimatepassage.com/images/yacht/IntlCO.jpg">/images/yacht/IntlCO.jpg</a><span>"</span>&gt;
&lt;/<span class="end-tag">form</span>&gt;
&lt;<span class="start-tag">script</span>&gt;document.getElementById('icForm').submit();&lt;/<span class="end-tag">script</span>&gt;
</pre>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>