[ic] InternationalCheckout.com's PHP code to Interchange SOLVED!

Lisa Collins lisa at ultimatepassage.com
Fri Oct 22 18:31:53 UTC 2010


 > Lisa Collins wrote:
 > > Dear Interchange Gurus,
 > >
 > > I'm trying to integrate InternationalCheckout.com's code on my site
 > > [include include/checkout/shopping_cart] but the only example they
 > > give is in PHP.
 > >
 >
 >
 > Hi Lisa,
 >
 > Try something like this. This would be the Interchange equivalent to the
 > php code.
 >
 > <form name="icForm" id="icForm" method="post"
 > action="https://www.internationalcheckout.com/cart.php">
 > [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
 >
 >
 > Dear Chris,
 >
 > I'm definitely getting closer because items are appearing in the page
 > source, Thank You!
 >
 > However nothing happens when the International Checkout Button is 
clicked.
 > I'm thinking
 > <script>document.getElementById('icForm').submit();</script>  is not
 > quite what Interchange is looking for??
 >
 > Thanks So Much!!
 >
 > Lisa
 >
 > <form name="icForm" id="icForm" method="post"
 > action="https://www.internationalcheckout.com/cart.php">
 >
 > <input type="hidden" name="ItemDescription1" value="RAYMARINE C140W
 > MULTIFUNCTION DISPLAY w/US COASTAL CHARTS">
 > <input type="hidden" name="ItemSKU1" value="34903">
 > <input type="hidden" name="ItemQuantity1" value="1">
 > <input type="hidden" name="ItemPrice1" value="$3,622.37">
 >
 > <input type="hidden" name="p" value="XXXXX">
 > <input type="image" src="/images/yacht/IntlCO.jpg">
 > </form>



Sometimes it takes awhile for this blonde brain to work.

I created a non-template page with the above code and it works perfectly!!

Chris, THANK YOU SO VERY MUCH!!

Many Blessings,

Lisa



More information about the interchange-users mailing list