Merchant Affiliate Program

Support Forum
It is currently Fri Sep 22, 2017 9:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jun 18, 2012 9:38 pm 
Offline

Joined: Fri May 04, 2012 12:28 pm
Posts: 5
I've followed the instructions at viewtopic.php?t=18 to incorporate the gift registry.

However, we'd really like to have the price included.

Using our cart, the price is identified in span as follows:

<span id="lblSitePrice" class="SitePrice">$119.95</span>

Any hints on how to integrate it into MyGiftList?


Top
 Profile  
 
 Post subject: This might work.
PostPosted: Tue Jun 19, 2012 10:59 am 
Offline
Site Admin

Joined: Mon Mar 29, 2004 3:56 pm
Posts: 114
We can try to get the price using this javascript:
document.getElementById('lblSitePrice').innerHTML

Entire code is below:

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) + "&giftPrice=" + escape(document.getElementById('lblSitePrice').innerHTML);
   var mgl = window.open(u,"MGL","width=700,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  [ 2 posts ] 

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