Merchant Affiliate Program
http://forums.mygiftlist.com/affiliates/kb/

Cart32 Shopping Cart
http://forums.mygiftlist.com/affiliates/kb/viewtopic.php?f=7&t=33
Page 1 of 1

Author:  admin [ Sun Apr 03, 2005 12:30 pm ]
Post subject:  Cart32 Shopping Cart

To integrate MyGiftList with a site that uses the Cart32 Shopping Cart System, http://www.cart32.com, for e-commerce, cut and paste the "Add to MyGiftList" HTML code below after the Add to Shopping Cart HTML button code but before the </form> tag in your web page.

Remember to change "Your Affiliate ID" below to your MyGiftList Affiliate ID and "Your Store Name" below to the name of your store.


Code:
<!-- BEGIN MyGiftList Code ---------------------------------------------------------------------
--  change "Your Affiliate ID" below to your MyGiftList Affiliate ID
--  change "Your Store Name" below to the name of your store
------------------------------------------------------------------------------------------------>

<input type="image" onclick="javascript:cart32MGLpopup(this.form);return false" src="http://www.mygiftlist.com/gif/AddtoMyGiftList7e.gif" width=68 height=26 border=0 alt="Click to Add to MyGiftList!">
<script language=javascript>
function cart32MGLpopup(ff) {
   var refsource = "Your Affiliate ID";
   var storename = "Your Store Name";
   var giftPrice = "";
   var giftName = "";
   var giftQuantity = "";
   var giftDescription = "";
   if (ff) {
      for (var i = 0; i < ff.elements.length; i++) {
         if (ff.elements[i].name == "Item") {
            giftName = ff.elements[i].value;
         }
         if (ff.elements[i].name == "Qty") {
            giftQuantity = ff.elements[i].value;
         }
         if (ff.elements[i].name == "Price") {
            giftPrice = ff.elements[i].value;
         }
         if (ff.elements[i].name == "PartNo") {
            giftDescription = ff.elements[i].value;
         }
      }
   }
   var u
   u = "http://www.mygiftlist.com/register_gift.asp?refSource=" + escape(refsource) + "&giftURL=" + escape(document.URL) + "&giftName=" + escape(giftName) + "&giftRetailer=" + escape(storename) + "&giftPrice=" + escape(giftPrice) + "&giftQuantity=" + escape(giftQuantity) + "&giftDescription=" + escape(giftDescription);
   var mgl = window.open(u,"MGL","width=600,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

<!-- End MyGiftList Code --------------------------------------------------------------->

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/