Merchant Affiliate Program

Support Forum
It is currently Thu Nov 23, 2017 6:16 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Mar 10, 2005 6:59 pm 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
The Online Catalog Builder is a Perl shopping cart that many hosting companies use and there may be several variations of it:
http://www.quikstore.com
http://www.beyondemail.com/

This code has been tested with the BEMstore cart of BeyondEmail.com.

To integrate MyGiftList with a site that uses the Online Catalog Builder for e-commerce, cut and paste the "Add to MyGiftList" HTML code below into the database_product_page.shtml file of your cart. The code should go right after the Add to Cart button. The Add to Cart button is this code snippet:
Code:
<input class="buttons" type="submit" name="add_to_cart" value="Add To Cart">


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
------------------------------------------------------------------------------------------------>
&nbsp;&nbsp;
<input type=image onclick='javascript:bemMGLpopup(this.form.name,"Your Affiliate ID","Your Store Name","bemstore");return false;' src=http://www.mygiftlist.com/gif/AddtoMyGiftList7e.gif width=68 height=26 border=0 alt="Click to Add to MyGiftList!"></a>
<script language=javascript>
function bemMGLpopup(formname, refsource, storename, cartname) {
   var giftPrice = "PRODUCT_PRICE";
   var giftName = "PRODUCT_NAME";
   var giftDescription = "PRODUCT_DESCRIPTION";
   var u = "";
   var m;
   if (document.forms[formname]) {
      for (var i = 0; i < document.forms[formname].elements.length; i++) {
         if (document.forms[formname].elements[i].name.indexOf("OPTION|") == 0 ) {
            m = document.forms[formname].elements[i].selectedIndex;
            if (m > -1) {
                u = u + document.forms[formname].elements[i].options[m].text + ", ";
            }
         }
      }
   }

   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
      giftDescription = u + ".  " + giftDescription;
   }
   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=500,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 sample database_product_page.shtml file:


Code:
<html>

<head>
<title>CATEGORY Product Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script LANGUAGE="JavaScript">

<!-- hide this script tag's contents from old browsers
function GoTo(thisURL) {
     self.location = thisURL;
}
function OpenWindow(thisURL) {
        var myWin = window.open(thisURL,"pics",
     "toolbar=no,scrollbars=yes,resizable=yes,width=350,height=350");
}
// -->

</script>

<link rel="stylesheet" type="text/css" href="%%web_site_url%%/styles.css">

</head>

<body topmargin="0" leftmargin="0">
<div align="center">
<!--#include virtual="/includes/headerCGI.html" -->

<form action="%%script_url%%" method="POST">
<!--%%hidden_fields%%-->

<div align="center"><center>
     <!--CATEGORY.html-->
     <h3 class="header">CATEGORY</h3>
      <P class="text"> <font color="#CC0000">Click on the photo to see a larger
        picture</font></p>
     <P><FONT SIZE="4" COLOR="#0000FF"><!-- ITEM_ORDERED_MESSAGE --></FONT></P>
</center></div>

<!-- END HEADER -->
<!-- BEGIN PRODUCT ROW -->

<div align="center"><center>
      <table border="0" cellpadding="0"
  cellspacing="0" width="700" bgcolor="#FFFFFF">
        <tr>
          <td width="100%" align="left"><strong><font face="Verdana, Arial, Helvetica, sans-serif">PRODUCT_NAME</font></strong></td>
    </tr>
    <tr>
          <td width="100%" valign="top">
<div align="left">
              <hr noshade color="#000000">
              <table border="0" width="100%">
                <tr>
                  <td width="100" valign="top">
<div align="center">
                      <table border="0" cellpadding="0"
          cellspacing="0" width="100" height="145">
                        <tr>
                          <td align="center" width="100%">PRODUCT_IMAGE_URL</td>
                        </tr>
                      </table>
                    </div></td>
                  <td valign="top"><div align="left">
                      <table border="0" cellspacing="1" width="100%">
                        <tr>
                          <td width="100%" class="text">PRODUCT_DESCRIPTION
                            <p class="text"><strong><font color="#CC0000">PRODUCT_PRICE</font></strong></p>
                            <p class="text">PRODUCT_OPTIONS </p>
                            <p class="text">PAGE_LINK</p>
                            <p class="text">
                              <!-- Begin User defined fields
                <P>USER_1</P>
                <P>USER_2</P>
                <P>USER_3</P>
                        <P>USER_4</P>
                       End User defined fields -->
                           
                            <!--Size: PRODUCT_SIZE   Weight: PRODUCT_WEIGHT Lbs.-->
                            <p></p></td>
                        </tr>
                      </table>
                    </div></td>
                </tr>
              </table>
             
            </div></td>
    </tr>
    <tr>
          <td width="100%" align="center" bgcolor="#000000">
<div align="left">
              <table width="99%" height="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CC0000">
                <tr>
                  <td width="2%" height="38"><br>
                    &nbsp;</td>
                  <td width="68%" align="right" valign="middle" class="text"><strong><font color="#FFFFFF">Quantity:</font></strong>
                    <select name="item-PRODUCT_ITEM_ID" size="1">
                      <option>0</option>
                      <option value="1">1</option>
                      <option value="2">2</option>
                      <option value="3">3</option>
                      <option value="4">4</option>
                      <option value="5">5</option>
                      <option value="6">6</option>
                      <option value="7">7</option>
                      <option value="8">8</option>
                      <option value="9">9</option>
                      <option value="10">10</option>
                    </select></td>
          <td align="center" width="30%">
          <input class="buttons" type="submit" name="add_to_cart" value="Add To Cart">
       
<!-- BEGIN MyGiftList Code ---------------------------------------------------------------------
--  change "Your Affiliate ID" below to your MyGiftList Affiliate ID
--  change "Your Store Name" below to the name of your store
------------------------------------------------------------------------------------------------>
&nbsp;&nbsp;
<input type=image onclick='javascript:bemMGLpopup(this.form.name,"ROMANCE3996","Romance 365","bemstore");return false;' src=http://www.mygiftlist.com/gif/AddtoMyGiftList7e.gif width=68 height=26 border=0 alt="Click to Add to MyGiftList!"></a>
<script language=javascript>
function bemMGLpopup(formname, refsource, storename, cartname) {
   var giftPrice = "PRODUCT_PRICE";
   var giftName = "PRODUCT_NAME";
   var giftDescription = "PRODUCT_DESCRIPTION";
   var u = "";
   var m;
   if (document.forms[formname]) {
      for (var i = 0; i < document.forms[formname].elements.length; i++) {
         if (document.forms[formname].elements[i].name.indexOf("OPTION|") == 0 ) {
            m = document.forms[formname].elements[i].selectedIndex;
            if (m > -1) {
                u = u + document.forms[formname].elements[i].options[m].text + ", ";
            }
         }
      }
   }

   if ( u != "" ) {
      u = u.substr(0, u.length-2);
      u = "I would like these options: " + u;
      giftDescription = u + ".  " + giftDescription;
   }
   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=500,height=400,top=60,left=100,resizable,scrollbars");
}
</script>

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

          </td>
        </tr>
      </table>
      </div></td>
    </tr>
  </table>
  </center></div>
<p>&nbsp;</p>

<!-- END PRODUCT ROW -->
<!-- BEGIN FOOTER -->

<div align="center"><center>
        <p class="subheading">ROW_COUNT of TOTAL_RECORDS Products</p>
     <P class="text9"><!--previous and next links--></p>
</center></div>

<hr width="600" align="center" SIZE="1">
<div align="center"><center>
<input CLASS="buttons" type="submit" name="previous_products" value="Previous Page">
      <INPUT CLASS="buttons" type="button" value="Product Search" onClick="GoTo('../products.shtml');">
<input CLASS="buttons" type="submit" name="continue" value="Continue Shopping">
<input CLASS="buttons" type="submit" name="storefront" value="Home Page">
<input CLASS="buttons" type="submit" name="view_cart" value="View Cart">
<input CLASS="buttons" type="submit" name="next_products" value="Next Page">
</center></div>
<hr width="600" align="center" SIZE="1">

</form>

<div align="center"><center>
<form action="%%secure_script_url%%" method="POST">
<!--%%hidden_fields%%-->
<!--%%hidden_cart_fields%%-->
<p>
        <input CLASS="buttons" type="submit" name="checkout" value="Checkout Stand">
      </p>
</form>
</center></div>

<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>


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 2 guests


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