Merchant Affiliate Program

Support Forum
It is currently Wed Nov 22, 2017 11:25 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: CAM Commerce Solutions
PostPosted: Tue Oct 28, 2008 5:32 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
To integrate MyGiftList with a site that uses the i.STAR e-commerce software, http://www.camcommerce.com, for e-commerce, cut and paste the "Add to MyGiftList" HTML code below into your product detail template.

Place the below code after this code snippet:

Code:
<a id="addToCartLink" class="addToCartLink" href="javascript:addToCart();"><img id="addToCartImage" class="addToCartLink" src="images/add_to_cart.gif" /></a>


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 -->
<BR> 
<a href='javascript:istarMGLpopup("Your Affiliate ID","Your Store Name","istar");' ><img src="http://images.mygiftlist.com/gif/AddtoMyGiftList7e.gif" width=68 height=26 border=0 alt="Click to Add to MyGiftList!"></a>
 
<script language=javascript>
function istarMGLpopup(refsource, storename, cartname) {
   var p;
   var u;
   var m;
   var d;
   var giftPrice;
   var giftName;
   var giftDescription;
   var giftImage;
   var q;
   
   u = "";

   p = document.forms["notesinfo"];
   if (p) {
         giftName = p["description"].value;
         giftImage = p["productPicture"].value;
         giftDescription = p["extdescription"].value;
      giftPrice = p["price"].value;
   }
      
   p = document.getElementById('sizeSelect');
    if (p) {
     
            m = p.selectedIndex;
            if (m > -1) {
                u = u + "Size=" + p.options[m].text + ", ";
         }
    }

   p = document.getElementById('colorSelect');
    if (p) {
     
            m = p.selectedIndex;
            if (m > -1) {
                u = u + "Color=" + p.options[m].text + ", ";
         }
    }

   p = document.getElementById('quantityInput');
    if (p) {
         q = p.value;
           u = u + "Quantity=" + q + ", ";
   }
 
   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
   }
   
   u = u + ".  " + giftDescription;
   
   u = "http://www.mygiftlist.com/register_gift.asp?refSource=" + escape(refsource) + "&giftURL=" + escape(document.URL) + "&giftName=" + escape(giftName) + "&giftPrice=" + escape(giftPrice) + "&giftRetailer=" + escape(storename) + "&giftCart=" + escape(cartname) + "&giftQuantity=" + escape(q) + "&giftDescription=" + escape(u) + "&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