Merchant Affiliate Program
http://forums.mygiftlist.com/affiliates/kb/

GENERIC Shopping Cart Integration Instructions
http://forums.mygiftlist.com/affiliates/kb/viewtopic.php?f=7&t=18
Page 1 of 1

Author:  admin [ Tue Aug 03, 2004 6:16 pm ]
Post subject:  GENERIC Shopping Cart Integration Instructions

MyGiftList will integrate with just about any shopping cart. This forum contains specific instructions for many types of shopping carts.

If your cart is not listed, you can try this code which will work with most carts.

Simply cut and paste this code on any page on your site that has a gift for sale. If you have a template, you can add the HTML code once to the template for your shopping cart.

This code works if:

1. The Title of the page is the name of the gift. Many shopping carts do this because it is helps with search engine rankings.

2. The URL of the current page is the page where the gift can be bought.

3. You are not concerned that the price is not automatically entered into the gift registry for the user.

If you want tighter integration with your shopping cart, you will have to be able to add the HTML code to your shopping cart scripts and use the database variables to fill in the gift information like the price.

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  -->
<!------------------------------------------------------------------------------------------------->
<a href='javascript:genericMGLpopup("Your Affiliate ID","Your Store Name","generic");' ><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 genericMGLpopup(refsource, storename, cartname) {
   var u;
   u = "http://www.mygiftlist.com/register_gift.asp?refSource=" + escape(refsource) + "&giftURL=" + escape(document.URL) + "&giftName=" + escape(document.title) + "&giftRetailer=" + escape(storename) + "&giftCart=" + escape(cartname);
   var mgl = window.open(u,"MGL","width=600,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

<!-- END MyGiftList Code --------------------------------------------------------------->

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/