woocommerce review tab with disquss

Discussion in 'WordPress' started by vincentweb, Aug 24, 2013.

  1. #1
    i implement disqus in my blog, everything fine in my post page except it dont seems to work in woocommerce single product page review tabs. does anyone know how to implement it?
     
    vincentweb, Aug 24, 2013 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    hello there,

    get a glance to this Tutorial : Link skip the first steps and read friom : integrate disqus without plugin.
    all what you have to do is add this function disqus_embed('myexampleblog'); to reviews.php woocommerce template located here : woocommerce/single-product/tabs

    Goodluck
     
    themes4all, Aug 25, 2013 IP
  3. vincentweb

    vincentweb Member

    Messages:
    68
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    43
    #3
    aaahh. i failed to getting it work. >.<
     
    vincentweb, Aug 29, 2013 IP
  4. vincentweb

    vincentweb Member

    Messages:
    68
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    43
    #4
    good news. i just got it work. many of the guides are outdated and probably not suit me but its still work to other maybe.
    in mycase after many many days surf on articles,
    <?php disqus_embed('yoursite_shortname'); ?> 
    Code (markup):
    was mean to include in woocommerce single-produtc-review/php and not in my review.php liked many said. (woocommerce plugin directory that what i'm using) woocommerce/templates/single-product-reviews.php

    and just add this in
    //loaddisqus
    
    function disqus_embed($disqus_shortname) {
        global $post;
        wp_enqueue_script('disqus_embed','http://'.$disqus_shortname.'.disqus.com/embed.js');
        echo '<div id="disqus_thread"></div>
        <script type="text/javascript">
            var disqus_shortname = "'.$disqus_shortname.'";
            var disqus_title = "'.$post->post_title.'";
            var disqus_url = "'.get_permalink($post->ID).'";
            var disqus_identifier = "'.$disqus_shortname.'-'.$post->ID.'";
        </script>';
    
    }
    Code (markup):
    in your theme (functions.php) it work for me.
    here my test product review tab in woocommerce with my own theme. http://www.etsycreative.com/product/woo-ninja-2/
    i just hope this alternative way for some other who have tried many ways liked me do and still cant get it work. good luck.
     
    vincentweb, Aug 30, 2013 IP
  5. vincentweb

    vincentweb Member

    Messages:
    68
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    43
    #5
    like many other claimed and other method which they cant (moderate their comment) in disqus.com. its still work for me. i can moderated the disqus comment in my woocommerce review tab.
     
    vincentweb, Aug 30, 2013 IP