Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 13 of 13

Thread: facebook comment to products

  1. #1
    gmaniac is offline Member
    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
    newtothis is offline Senior Member
    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
    newtothis is offline Senior Member
    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
    gmaniac is offline Member
    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
    gmaniac is offline Member
    Join Date
    Jul 2010
    Location
    Missouri
    Posts
    59

    Default

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

  6. #6
    chapper is offline Junior Member
    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
    sduffy77 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Lancaster, PA
    Posts
    142

    Default

    anyone get this working yet?

  8. #8
    gmaniac is offline Member
    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
    Ajeet Kumar is offline Junior Member
    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
    Skriver is offline Senior Member
    Join Date
    Apr 2012
    Posts
    188

    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.

  11. #11
    christianyoung is offline User
    Join Date
    Jun 2009
    Posts
    21

    Default or

    http://www.ecommercecartmods.com/p-1...torefront.aspx
    you can ask these guys if they have it for your version.

  12. #12
    Ydeveloper is offline Junior Member
    Join Date
    Nov 2010
    Location
    Waltham
    Posts
    7

    Default

    So this will help us to integrate facebook comment plugin directly into the site by this code. Great, and thanks for the help.

  13. #13
    SarahGomez is offline Junior Member
    Join Date
    Jan 2013
    Location
    New york
    Posts
    7

    Default

    Please tell me some more about your forum. Make some large passwords for Facebook sites because hack your password and their by they know obout your privacy and you are secured. Anyone will comment on you. So be careful!

    Visit here.. http://www.prlog.org/12114868-lenswo...o-grab-it.html
    Last edited by SarahGomez; 04-11-2013 at 02:14 AM.