Merchant Affiliate Program

Support Forum
It is currently Sat Nov 18, 2017 12:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Sep 23, 2004 2:46 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
To integrate MyGiftList with a site that uses the RomanCart Shopping Cart for e-commerce, http://www.romancart.com, cut and paste the "Add to MyGiftList" HTML code below before the </form> end tag of your RomanCart Add to Basket buttons.

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 ---------------------------------------------------------------------
--  Add this code before the </form> end tag for the PayPal Add to Cart button
--  change "Your Affiliate ID" below to your MyGiftList Affiliate ID
--  change "Your Store Name" below to the name of your store
------------------------------------------------------------------------------------------------>
<BR>
<input type="image" onclick='javascript:romancartMGLpopup(this.form,"Your Affiliate ID","Your Store Name","romancart");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 romancartMGLpopup(f, refsource, storename, cartname) {
   var giftPrice = "";
   var giftName = "";
   var giftQuantity = "";
   if (f) {
      for (var i = 0; i < f.elements.length; i++) {
         if (f.elements[i].name == "itemname") {
            giftName = f.itemname.value;
         }
         else if (f.elements[i].name == "price") {
            giftPrice = f.price.value;
         }
         else if (f.elements[i].name == "quantity") {
            giftQuantity = f.quantity.value;
         }
      }
   }
   var 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) + "&giftQuantity=" + escape(giftQuantity);
   var mgl = window.open(u,"MGL","width=600,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

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


For example, here is the Add to MyGiftList button code added to a RomanCart Order button:


Code:
<form action=http://www.romancart.com/cart.asp>
    <div align="center"><font face="Arial, Helvetica, sans-serif">
      <input type=hidden name=itemname value='SKYWATCHER MERCURY-607'>
      <input type=hidden name=price value=79.00>
      <input type=hidden name=storeid value=11843>
      <input type=hidden name=quantity value=1>
      <input type=hidden name=shipping1 value=10.00>
      <input type="image" border="0" name="imageField" src="order%20blue.jpg" width="109" height="34" align="middle">
      </font></div>
    
<!-- BEGIN MyGiftList Code ---------------------------------------------------------------------
--  Add this code before the </form> end tag for the PayPal Add to Cart button
--  change "Your Affiliate ID" below to your MyGiftList Affiliate ID
--  change "Your Store Name" below to the name of your store
------------------------------------------------------------------------------------------------>
<BR>
<input type="image" onclick='javascript:romancartMGLpopup(this.form,"Your Affiliate ID","Your Store Name","romancart");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 romancartMGLpopup(f, refsource, storename, cartname) {
   var giftPrice = "";
   var giftName = "";
   var giftQuantity = "";
   if (f) {
      for (var i = 0; i < f.elements.length; i++) {
         if (f.elements[i].name == "itemname") {
            giftName = f.itemname.value;
         }
         else if (f.elements[i].name == "price") {
            giftPrice = f.price.value;
         }
         else if (f.elements[i].name == "quantity") {
            giftQuantity = f.quantity.value;
         }
      }
   }
   var 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) + "&giftQuantity=" + escape(giftQuantity);
   var mgl = window.open(u,"MGL","width=600,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

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

  </form>


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