<!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:
><i> Dear Interchange Gurus,
</i>><i>
</i>><i> I am praying someone here can help me because my programming skills
</i>><i> are next to none and I've been told, "It's so easy!". I have tried so
</i>><i> many things over the last few days to no avail.
</i>><i>
</i>><i> I'm trying to integrate InternationalCheckout.com's code on my site
</i>><i> [include include/checkout/shopping_cart] but the only example they
</i>><i> give is in PHP.
</i>><i>
</i>><i> How can I do this with Interchange? What would be the equivalent of
</i>><i> this PHP Code to transfer the shopping cart to them?
</i>><i>
</i>><i> From their instructions:
</i>><i> In order to transmit the contents of your shopping cart to the
</i>><i> International Checkout page, you’ll have to send the contents of your
</i>><i> store’s
</i>><i> shopping cart to International Checkout. The following parameters have
</i>><i> to be passed to our shopping cart in the form of HIDDEN
</i>><i> elements of HTML.
</i>><i> ---Just a few parameters from the list which I need:
</i>><i>
</i>><i> ItemDescription (ItemDescription1)
</i>><i> ItemSKU (ItemSKU1)
</i>><i> ItemQuantity (ItemQuantity1)
</i>><i> ItemPrice (ItemPrice1)
</i>><i>
</i>><i>
</i>><i>
</i>><i> Sample Code they provided in PHP:
</i>><i>
</i>><i> <form name="icForm" id="icForm" method="post"
</i>><i> action="<a href="https://www.internationalcheckout.com/cart.php%22">https://www.internationalcheckout.com/cart.php"</a>>
</i>><i> <?php for($i = 1; $i <= TOTAL ITEMS IN YOUR CART; $i++) { ?>
</i>><i> <input type="hidden" name="ItemDescription<?php echo $i?>" value="ITEM
</i>><i> DESCRIPTION">
</i>><i> <input type="hidden" name="ItemSKU<?php echo $i?>" value="ITEM CODE
</i>><i> VALUE">
</i>><i> <input type="hidden" name="ItemSize<?php echo $i?>" value="ITEM SIZE">
</i>><i> <input type="hidden" name="ItemQuantity<?php echo $i?>" value="ITEM
</i>><i> QUANTITY">
</i>><i> <input type="hidden" name="ItemPrice<?php echo $i?>" value="ITEM PRICE">
</i>><i> <? } ?>
</i>><i> <input type="hidden" name="p" value=" YOUR PARTNER VALUE REGISTERED
</i>><i> WITH US ">
</i>><i> </form>
</i>><i> <script>document.getElementById('icForm').submit();</script>
</i>><i>
</i>><i> ---
</i>><i> From the above, I'm assuming "value=" would be MY Fields from
</i>><i> products.txt??
</i>><i>
</i>><i>
</i>><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.
<form name="icForm" id="icForm" method="post"
action="<a href="https://www.internationalcheckout.com/cart.php%22">https://www.internationalcheckout.com/cart.php"</a>>
[item-list]
<input type="hidden" name="ItemDescription[item-increment]"
value="[item-description]">
<input type="hidden" name="ItemSKU[item-increment]" value="[item-code]">
<input type="hidden" name="ItemSize[item-increment]"
value="[item-modifier size]">
<input type="hidden" name="ItemQuantity[item-increment]"
value="[item-quantity]">
<input type="hidden" name="ItemPrice[item-increment]" value="[item-price]">
[/item-list]
<input type="hidden" name="p" value=" YOUR PARTNER VALUE REGISTERED WITH
US ">
</form>
<script>document.getElementById('icForm').submit();</script>
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
<script>document.getElementById('icForm').submit();</script>
is not quite what Interchange is looking for??<br>
<br>
Thanks So Much!!<br>
<br>
Lisa<br>
<br>
<pre id="line468"><<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>>
<<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>>
<<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>>
<<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>>
<<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>>
<<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>>
<<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>>
</<span class="end-tag">form</span>>
<<span class="start-tag">script</span>>document.getElementById('icForm').submit();</<span class="end-tag">script</span>>
</pre>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>