|
Dealtagger Zen Cart Mod
|
|
07-19-2009, 02:54 AM,
|
|||
|
|||
|
Dealtagger Zen Cart Mod
Dealtagger.com doesn't have a Zen Cart mod and the Zen Cart forum was useless (an unanswered question asked by a storeowner last year http://www.zen-cart.com/forum/showthread.php?t=92782) so I was forced to waste an hour and a half on a Saturday night creating a Zen Cart mod.
This code will dynamically populate the fields required for dealtagger's merchant taglet (add the code to tpl_product_info_display.php and substitute your dealtagger client key and your site URL in the appropriate fields): Code: <script type="text/javascript"><!--
dealtagger_clientkey = "substitute your merchant key here";
dealtagger_price = "<?php echo $specials_price ? $specials_price : $products_price; ?>";
dealtagger_url = "<?php echo $linkpath = zen_href_link(zen_get_info_page($_GET['products_id']) , 'products_id=' . $_GET['products_id'], 'NONSSL', false);
while (strstr($linkpath, '&'))
$linkpath = str_replace('&', '&', $linkpath);
$linkpath = urlencode($linkpath); ?>";
dealtagger_desc = "<?php echo $products_name; ?>";
dealtagger_imageurl = "http://www.substituteyoururlhere.com/<?php echo DIR_WS_IMAGES . $products_image; ?>";
dealtagger_currency = "USD";
//--></script>
<script type="text/javascript" src="http://datafeeds.dealtagger.com/js/taglet.js"></script>the output from the above code will look like this when you view source on your product page: Code: <script type="text/javascript"><!--
dealtagger_clientkey = "69b86e97ecbf2be05470d58bbfe68715";
dealtagger_price = "$49.99";
dealtagger_url = "http://www.tulipstuff.com/iview-1000dv-progressive-scan-multimedia-dvd-player-blue-p-18230.html";
dealtagger_desc = "iView 1000DV Progressive Scan Multimedia DVD Player- Blue";
dealtagger_imageurl = "http://www.tulipstuff.com/images/1000dvblue.jpg";
dealtagger_currency = "USD";
//--></script>
<script type="text/javascript" src="http://datafeeds.dealtagger.com/js/taglet.js"></script>more info on their merchant taglet: http://www.dealtagger.com/help/merchant/taglet/
"Well, Jay was so giddy that someone named Jay was involved with this site we posted our first non-eBay listing in 3 years here at Lunarbid (we tried two items at Yahoo once upon a time, they bombed)" -Marie posting in a LunarBid thread at OTWA in 2005 wins the award for 'most moronic reason ever given for choosing a venue"
"thanks twat u must have nothing better 2 do. do u talk to all your members like that. will not be recomending your site. best way to put it is TULIPTOOLS.COM IS REALLY SHIT. DONT JOIN." -pubescent owner of rinky dink off2auction.com in 2011 |
|||
|
07-19-2009, 02:55 AM,
|
|||
|
|||
|
Re: Dealtagger Zen Cart Mod
Don't you just hate it when someone breaks the page on a forum and you have to scroll sideways to read the post?
tolensmiley:
"Well, Jay was so giddy that someone named Jay was involved with this site we posted our first non-eBay listing in 3 years here at Lunarbid (we tried two items at Yahoo once upon a time, they bombed)" -Marie posting in a LunarBid thread at OTWA in 2005 wins the award for 'most moronic reason ever given for choosing a venue"
"thanks twat u must have nothing better 2 do. do u talk to all your members like that. will not be recomending your site. best way to put it is TULIPTOOLS.COM IS REALLY SHIT. DONT JOIN." -pubescent owner of rinky dink off2auction.com in 2011 |
|||
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)





tolensmiley:


