Integration with Dealspl.us
Hello People!
I have a problem, I'm trying to integrate DealsPl.us into my classipress theme.
DealsPl.us have a tool that allows users to post deals from other sites, that they find to be attractive, to their website. They get a lot of traffic and I thought that it would be a neat idea if people could send listings from my site to DealsPlus, it should get me more traffic.
Anyway, here's the code they say needs to be added:
<script type="text/javascript">
var _dp_tools_URL = 'http://example.com/product/url';
var _dp_tools_TITLE = 'Product Title';
var _dp_tools_IMG_URL = 'http://example.com/img/url/1234.jpg';
var _dp_tools_DESC = 'Product Description';
var _dp_tools_LIST_PRICE = '$149.99';
var _dp_tools_PRICE = '$99.99';
var _dp_tools_PRICE_AFTER_REBATE = '$79.99';
var _dp_tools_SHIP_PRICE = 'Free';
</script>
<script type="text/javascript" src="http://dealspl.us/dptools/
js/1/plusbtn"></script>
Now, here's the version I have edited to fit with how classipress works:
<script type="text/javascript">
var _dp_tools_URL = '<a href="<?php the_permalink(); ?>">';
var _dp_tools_TITLE = '<?php the_title(); ?>';
var _dp_tools_IMG_URL = '<?php $images = get_post_meta($post->ID, "images", true); ?>';
var _dp_tools_DESC = '<?php the_content(); ?>';
var _dp_tools_LIST_PRICE = '<?php echo get_option('currency'); ?>';
</script>
<script type="text/javascript" src="http://dealspl.us/dptools/
js/1/plusbtn"></script>
After testing, I noticed that only the URL and TITLE seems to be working. How can I get the listing price, description and an image to work also?
Any help would be SUPER!
Cheers,
Julius