Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: facebook comment to products

  1. #1
    Join Date
    Jul 2010
    Location
    Missouri
    Posts
    59

    Default facebook comment to products

    Here is my version:
    AspDotNetStorefront ML 8.0.1.1/8.0.1.1

    I am using simple product to show my products.

    Here is the file I edited:
    product.SimpleProduct.xml.config

    File location:
    htdocs\XmlPackages

    Find this line of code (should be line 276):
    Code:
    <xsl:value-of select="aspdnsf:ProductRatings(ProductID, 0, 0, 0, 1)" disable-output-escaping="yes"/>
    Enter this after that line:
    Code:
    <xsl:text disable-output-escaping="yes">
    <![CDATA[
    <div id="fb-root"></div><script src="GETyourCODEfromFACEBOOK"></script><fb:comments xid="000000000" width="425"></fb:comments>
    ]]>
    </xsl:text>
    Of course you will have to get your:
    Code:
    <div id="fb-root"></div><script src="GETyourCODEfromFACEBOOK"></script><fb:comments xid="0000000000" width="425"></fb:comments>
    From facebook here is a link to where you can get your code follow their instructions.

    If you need to see it in action click here!

    If you have any question or need help with anything I will do my best
    Happy Programming, hope it helps!

  2. #2
    Join Date
    Mar 2009
    Posts
    200

    Default

    I love this idea, but I couldnt find that line of code in my xml package

  3. #3
    Join Date
    Mar 2009
    Posts
    200

    Default

    Wondering if anyone else would know where I could find that line of code in the XML package? I couldnt find it anywhere? I am running on version 8. Many thanks.

  4. #4
    Join Date
    Jul 2010
    Location
    Missouri
    Posts
    59

    Default

    Sorry it took me so long to get on and get back to you. Like Alfred said it should be in that doc by default. I will pull up what I have and see if I can get this figured out for you.
    Last edited by gmaniac; 12-29-2010 at 12:49 PM. Reason: misread previous post

  5. #5
    Join Date
    Jul 2010
    Location
    Missouri
    Posts
    59

    Default

    Hey newtothis what version are you running? Do you have access to code?

  6. #6
    Join Date
    Mar 2011
    Posts
    2

    Default Bump for hopes of updating with new code

    Bumping to the Top with hopes someone can help with the new Code Facebook has added. That site above the comments are not working.

  7. #7
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default

    anyone get this working yet?

  8. #8
    Join Date
    Jul 2010
    Location
    Missouri
    Posts
    59

    Default Fixed for new version of Facebook plugin

    So this is a very simple fix, you should be able to do it exactly the same and enter the code that you receive from facebook.

    Recheck that link to the product, it is showing as working on my side. Let me know if you have any trouble with this, I would be more than happy to help you.

    If you are needing a quick answer then shoot me an email at geoffrey@racknfeathers.com

    Happy Coding!

    Here is what I changed if you want to see:
    Original Post Code:
    Code:
    <xsl:text disable-output-escaping="yes">
    <![CDATA[
    <div id="fb-root"></div><script src="GETyourCODEfromFACEBOOK"></script><fb:comments xid="000000000" width="425"></fb:comments>
    ]]>
    </xsl:text>
    Here is the only change (only has to do with facebook's side everything else is correct):
    Code:
    <![CDATA[
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=142431379143868&amp;xfbml=1"></script><fb:comments href="racknfeathers.com" num_posts="4" width="500"></fb:comments>
    ]]>
    Should work for you now, go here to get your facebook plugins!
    Last edited by gmaniac; 03-28-2011 at 01:04 PM. Reason: visually look

  9. #9
    Join Date
    Aug 2010
    Location
    Noida, India
    Posts
    3

    Default Social Media Integration for sharing Product.

    Place below code in your XML Package watever you are using e.g: simpleproduct.xml.config etc.. and after add to cart button or under Product Template wherever you want to place.

    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_button_pinterest_pinit"></a>
    <a class="addthis_counter addthis_pill_style"></a>
    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-501b73fb473d2c30"></script>

    If you have any question or need help with anything regarding ASPDNSF any Version, let me know or for quick response shoot me a mail on ajeet.cs7@gmail.com..
    Happy Programming, hope it helps!

  10. #10
    Join Date
    Apr 2012
    Posts
    177

    Default

    Add this can sometimes cause a mess with pages with Jquery on so I would also look at the other pages of the site to ensure all is well. Sharethis.com is another alternative too. Both the same really.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •