Merchant Affiliate Program

Support Forum
It is currently Thu Nov 23, 2017 5:53 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Oct 28, 2008 4:08 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
To integrate MyGiftList with a site that uses the StoreFront 5.0 Shopping Cart, http://www.storefront.net, for e-commerce, cut and paste the "Add to MyGiftList" HTML code below into the detail.asp file. This code has not been fully tested so please let us know if you find problems.

Place the below code after this code snippet:

Code:
        If iEmailActive = 1 Then
        %>
                <a href="javascript:emailFriend('<%= txtProdId %>')">
                    <img border="0" src="/images/buttons/email.gif" alt="Email a Friend" width="106" height="22"></a>
                &nbsp;</font></center><font color="#686537">Gift wrapping also
                includes a short 1-2 line hand written note insert. You will be given an opportunity to let us know what you would
                like to say at checkout under Special Instructions.</font><center><font face="Times New Roman" size="2" color="#000080"><% End If %>


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:storefrontMGLpopup(this.form,"Your Affiliate ID","Your Store Name","storefront");return false;' src="http://images.mygiftlist.com/gif/AddtoMyGiftList7e.gif" width=68 height=26 border=0 alt="Click to Add to MyGiftList!">

<textarea rows=1 cols=10 name=giftName style="display:none"><%= rsProdDetail("prodName") %></textarea>
<input type=hidden name=giftPrice value="<%= rsProdDetail("prodPrice") %>">
<textarea rows=1 cols=10 name=giftDescription style="display:none"><%= rsProdDetail("prodShortDescription") %></textarea>
<input type=hidden name=giftImage value='<%= rsProdDetail("prodImageSmallPath") %>'>

<script language=javascript>
function storefrontMGLpopup(f, refsource, storename, cartname) {
   var giftPrice = "";
   var giftName = "";
   var giftDescription = "";
   var giftImage = "";
   var m;
   var u = "";
   var n;
   
   if (f) {
       giftPrice = f.giftPrice.value;
      giftName = f.giftName.value;
      giftDescription = f.giftDescription.value;
      giftImage = f.giftImage.value;
    
      for (var i = 0; i < f.elements.length; i++) {
         m = f.elements[i].selectedIndex;
         n = f.elements[i].name

         if (m > -1) {
            u = u + f.elements[i].options[m].text + ", ";
           }
         if (f.elements[i].name == "QUANTITY" ) {
               u = u + "Quantity=" + f.elements[i].value + ", ";
         }
       }
   }
   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
      giftDescription = u + ".  " + giftDescription;
   }

   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) + "&giftImage=" + escape(giftImage);
   var mgl = window.open(u,"MGL","width=720,height=500,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: 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