Results 1 to 1 of 1

Thread: Integration with Dealspl.us

  1. #1
    Thread Starter
    juliusnkemdiche's Avatar
    Join Date
    Aug 2009
    Location
    London, England
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ebay Integration
    By jyormark in forum ClassiPress General Discussion
    Replies: 6
    Last Post: June 15th, 2011, 08:40 PM
  2. Are there plans for Authorize.net integration?
    By reddit in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 7th, 2011, 05:31 PM