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

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

Author:  admin [ Thu Aug 18, 2005 2:34 pm ]
Post subject:  Actinic Shopping Cart Integration

Actinic is a mature shopping cart that can be purchased at:
http://www.actinic.com/

This code has been created for Actinic Catalog version 7 but may work for other versions.

To integrate MyGiftList with a site that uses Actinic, cut and paste the "Add to MyGiftList" HTML code below into the template you use for displaying your products. You can find templates to edit under the Layout button for each product. The code should go right after the Add to Cart button. The Add to Cart button is this code snippet:

Code:
<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>


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><BR>
<input type=image onclick='javascript:actinicMGLpopup("Your Affiliate ID","Your Store Name","actinic");return false;' 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 actinicMGLpopup(refsource, storename, cartname) {
   var giftPrice = "NETQUOTEVAR:PRODUCTPRICE";
   var giftName = "NETQUOTEVAR:PRODUCTNAME";
   var giftDescription = "NETQUOTEVAR:PRODUCTDESCRIPTION";
   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) + "&giftDescription=" + escape(giftDescription);
   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 "Large image on the left template":


Code:
<!-- ProductLine HTML begin -->
<!-- Insert HTML for the top of the individual product --> NETQUOTEVAR:INCLUDE Act_ProductSeparator.html NETQUOTEVAR:ENDSEPARATOR NETQUOTEVAR:PRODUCTFORMBEGIN
  <tr>
    <td rowspan="2" colspan="2" valign="TOP" align="CENTER"> NETQUOTEVAR:TEMPLATEBEGINXML NETQUOTEVAR:PRODUCTIMAGE </td>
    <td valign="TOP" align="LEFT">
      <a name="NETQUOTEVAR:PRODUCTANCHOR"><span
class="actregular"><b>NETQUOTEVAR:PRODUCTNAME</b></span></a>
      <span class="actxsmall">NETQUOTEVAR:PRODUCTREF <br>
      NETQUOTEVAR:PRODUCTDESCRIPTION&nbsp;NETQUOTEVAR:EXTINFOLINK</span>NETQUOTEVAR:EXTINFOBUTTON
      <br>
      <span
class="actxsmall">NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK
      NETQUOTEVAR:PRICEEXPLANATION </span><br>
      <b>NETQUOTEVAR:PRODUCTPRICE</b><br>
      <span class="actxsmall">NETQUOTEVAR:DISCOUNTINFO </span>
      <span class="actxsmall">NETQUOTEVAR:OTHERINFOPROMPT </span>
      <span class="actxsmall">NETQUOTEVAR:DATEPROMPT </span>
    </td>
  </tr>
  <tr>
    <td align="LEFT"><span class="actxsmall">
   NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY<br>
   <Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>

<!-- 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><BR>
<input type=image onclick='javascript:actinicMGLpopup("Your Affiliate ID","Your Store Name","actinic");return false;' 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 actinicMGLpopup(refsource, storename, cartname) {
   var giftPrice = "NETQUOTEVAR:PRODUCTPRICE";
   var giftName = "NETQUOTEVAR:PRODUCTNAME";
   var giftDescription = "NETQUOTEVAR:PRODUCTDESCRIPTION";
   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) + "&giftDescription=" + escape(giftDescription);
   var mgl = window.open(u,"MGL","width=600,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

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

      </span>
 NETQUOTEVAR:TEMPLATEENDXML
       </td>
  </tr>
NETQUOTEVAR:PRODUCTFORMEND
NETQUOTEVAR:NEXT
<!-- Insert HTML for the bottom of the individual product -->
<!-- ProductLine HTML end -->

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