Merchant Affiliate Program

Support Forum
It is currently Sat Sep 23, 2017 3:29 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Jul 26, 2004 12:28 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
To integrate MyGiftList with a site that uses easystorecreator.com for e-commerce, cut and paste the "Add to MyGiftList" HTML code below after the Add to Basket graphic HTML code in your site.

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:escMGLpopup(this.form.name,"Your Affiliate ID","Your Store Name","easystorecreator.com");return false;' src=http://www.mygiftlist.com/gif/AddtoMyGiftList7e.gif width=68 height=26 border=0 alt="Click to Add to MyGiftList!"></a>
<script language=javascript>
function escMGLpopup(formname, refsource, storename, cartname) {
   var giftPrice = "";
   var giftName = "";
   var giftDescription = ""
   var u = "";
   var m;
   if (document.forms[formname]) {
      for (var i = 0; i < document.forms[formname].elements.length; i++) {
         if (document.forms[formname].elements[i].name == "Item_Name") {
            giftName = document.forms[formname].Item_Name.value;
         }
         if (document.forms[formname].elements[i].name.indexOf("Count_Class_") == 0 ) {
            m = document.forms[formname].elements[i].selectedIndex;
            if (m > -1) {
                u = u + document.forms[formname].elements[i].options[m].text + ", ";
            }
         }
      }
   }

   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like this style: " + u;
      giftDescription = u + ".";
   }
   u = "http://www.mygiftlist.com/register_gift.asp?refSource=" + escape(refsource) + "&giftURL=" + escape(document.URL) + "&giftName=" + escape(giftName) + "&giftRetailer=" + escape(storename) + "&giftCart=" + escape(cartname) + "&giftPrice=" + escape(giftPrice) + "&giftDescription=" + escape(giftDescription);
   var mgl = window.open(u,"MGL","width=500,height=400,top=60,left=100,resizable,scrollbars");
}
</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: Yahoo [Bot] 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