Merchant Affiliate Program

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Apr 18, 2013 1:42 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
To integrate MyGiftList with a site that uses the Web.com 1ShoppingCart.com Shopping Cart, http://www.1shoppingcart.com, for e-commerce, cut and paste the "Add to MyGiftList" HTML code into the Product Page template that is used for your store. To find this field, login to your store control panel and click on Store then Page Templates in the main menu. Then find the product template selected as the default and click Edit. On the next screen, you will want to click the "Code | Preview Mode" link to view the source code of the template instead of the 1sc tags.

Place the below MGL code after this snippet of code:

Code:
<div class="option">[1sc:product.quantity /] <span class="action">[1sc:product.addtocart /]</span></div>


Remember to change "Your Affiliate ID" below to your MyGiftList Affiliate ID and "Your Store Name" below to the name of your store.

You will also want to create a new Gift Registry page in your store and add the Login Code so visitors can create, find, and login to their registries from your website.


Code:
<!-- BEGIN MyGiftList Code -->
<div align=right>

<input type="image" onclick='javascript:weboneMGLpopup(this.form,"Your Affiliate ID","Your Store Name","web.one");return false;' onSubmit="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">[1sc:product.name /]</textarea>
<input type=hidden name=giftPrice value="[1sc:product.price /][1sc:product.saleprice /][1sc:product.onsale /]">
<textarea rows=1 cols=10 name=giftDescription style="display:none">[1sc:product.longdescription /]</textarea>

<script language=javascript>
function weboneMGLpopup(f, refsource, storename, cartname) {
   var giftPrice = "";
   var giftName = "";
   var giftDescription = "";
   var giftImage = "";
   var giftQuantity = ""
   var m;
   var u = "";
   var n;
   
   if (f) {
       giftPrice = f.giftPrice.value;
      giftName = f.giftName.value;
      giftDescription = f.giftDescription.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 == "qty" ) {
               u = u + "Quantity=" + f.elements[i].value + ", ";
               giftQuantity = f.elements[i].value;
         }
       }
   }
   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
      giftDescription = u + ".  " + giftDescription;
   }

   giftImage = document.getElementById("product_image").src;
   
   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)  + "&giftImage=" + escape(giftImage) + "&giftDescription=" + escape(giftDescription);
   var mgl = window.open(u,"MGL","width=800,height=600,top=60,left=100,resizable,scrollbars");
}
</script>
</div>

<!-- 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