Merchant Affiliate Program

Support Forum
It is currently Tue Sep 19, 2017 10:02 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ProStores Integration
PostPosted: Fri Jun 24, 2005 12:45 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
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 ------------------------------------------------------------------->



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group