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

ProStores Integration
http://forums.mygiftlist.com/affiliates/kb/viewtopic.php?f=7&t=41
Page 1 of 1

Author:  admin [ Fri Jun 24, 2005 12:45 pm ]
Post subject:  ProStores Integration

To integrate MyGiftList with a site that uses the ProStores Shopping Cart, http://www.prostores.com, for e-commerce, cut and paste the "Add to MyGiftList" HTML code below into the Cart Add template. The Cart Add template can be found in the Design Studio. Select the the template set you are currently using, then select Checkout, then Cart Add. Place the below code at the end of the template right before this code snippet:

Code:
<!-- end cartadd template -->


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 giftRetailer value below from "Your Store Name" to the name of your store  -->
<!--  change refsource value below from "Your Affiliate ID" to your MyGiftList Affiliate ID -->
<!------------------------------------------------------------------------------------------------>
</form>
<form action=http://www.mygiftlist.com/register_gift.asp method=post target=MGL>

<input type=hidden name=giftRetailer value="Your Store Name">
<input type=hidden name=RefSource value="Your Affiliate ID">
<textarea rows=1 cols=10 name=giftName style="display:none"><ss:value source="$product.name"/></textarea>
<textarea rows=1 cols=10 name=giftPrice style="display:none"><ss:value source="$product.finalPrice"/></textarea>
<textarea rows=1 cols=10 name=giftDescription style="display:none"><ss:value source="$product.description"/></textarea>
<input type=hidden name=giftURL value="">
<textarea rows=1 cols=10 name=giftImage style="display:none"><ss:value source="$product.thumbnailImage"/></textarea>
<input type=image src=http://images.mygiftlist.com/gif/AddtoMyGiftList7e.gif width=68 height=26 border=0 alt="Click to Add to MyGiftList!" onclick=javascript:prostoresMGLpopup(this.form);>

<script language=javascript>
function prostoresMGLpopup(f) {
   var p;
   var u;
   var m;
   var d;
   
   u = "";
   p = document.forms["cartadd"];
   if (p) {
      for (var i = 0; i < p.elements.length; i++) {
         if (p.elements[i].name.indexOf("color") == 0 ) {
            m = p.elements[i].selectedIndex;
            if (m > -1) {
                u = u + p.elements[i].options[m].text + ", ";
            }
         }
         if (p.elements[i].name.indexOf("size") == 0 ) {
            m = p.elements[i].selectedIndex;
            if (m > -1) {
                u = u + p.elements[i].options[m].text + ", ";
            }
         }
      }
   }

   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
      d = f.giftDescription.innerHTML;
      f.giftDescription.innerHTML = u + ". " + d;
   }

   f.giftURL.value = document.URL;
   var w = window.open('', "MGL", "width=700,height=400,top=60,left=100,resizable,scrollbars");
   w.focus;
   f.submit;
}
</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/