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 10 of 10

Thread: Google +1 on product pages (google plus one)

  1. #1
    CoryAvidmax is offline Junior Member
    Join Date
    Nov 2010
    Posts
    19

    Default Google +1 on product pages (google plus one)

    Has anyone implemented the Google +1 button on their product pages yet? It seems like a pretty simple set up, but when I put the code Google gives to do it then the whole page errors and won't load. Here's what I'm putting in:

    <!-- Place this tag in your head or just before your close body tag -->
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

    <!-- Place this tag where you want the +1 button to render -->
    <glusone></glusone>

    The last part right above is what is causing the error. I'm guessing that it isn't formatted for xml properly, but I am not a developer to know for sure. I'm inserting the whole thing on my product.simpleproduct.xml.config file. Any help would be greatly appreciated!

  2. #2
    ROBB is offline Senior Member
    Join Date
    Jun 2011
    Location
    United States
    Posts
    107

    Default Stylesheet Declaration

    Try adding the following code to the xsl:stylesheet declaration: xmlns:g="http://base.google.com/ns/1.0"

    The final result will look something like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" xmlns:g="http://base.google.com/ns/1.0" exclude-result-prefixes="aspdnsf">

  3. #3
    CoryAvidmax is offline Junior Member
    Join Date
    Nov 2010
    Posts
    19

    Default Re: Stylesheet Declaration

    Fantastic! That worked like a charm. Thank you for your help.

  4. #4
    deanfp is offline Senior Member
    Join Date
    May 2009
    Location
    Sweden
    Posts
    556

    Default

    I added ours simply using addthis.com

  5. #5
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default Can't get Google Plus to work

    I cannot get google plus to work. It shows up but gives and "!" error button after clicking it.

    I placed this on the template.master:
    <!-- Place this tag in your head or just before your close body tag -->
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

    And, this on the xml package:
    <!-- Place this tag where you want the +1 button to render -->
    <glusone></glusone>

    Also, did this on the xml package:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" xmlns:g="http://base.google.com/ns/1.0" exclude-result-prefixes="aspdnsf">

    Any thoughts? Seem like I'd need a script or something to make this work....

  6. #6
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    I would go with what deanfp said. Use addthis.com. We currently use it for the added traceability too.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  7. #7
    mikemurphy is offline Senior Member
    Join Date
    Mar 2006
    Location
    United Kingdom
    Posts
    207

    Default

    Macecase - did you put this in your template

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:g="http://base.google.com/ns/1.0">
    8.0.1.4 W2008R2 64-bit MSSQL2005

  8. #8
    locklind is offline Junior Member
    Join Date
    Dec 2005
    Location
    Texas
    Posts
    15

    Default Google+1 and Internet Explorer

    I found that Internet Explorer will not display the Google+1 when I use:

    Code:
    <g:plusone size="medium" count="true"></g:plusone>
    but the following change shows the Google+1 in IE, using HTML5 syntax:

    Code:
     <div class="g-plusone" data-size="medium" data-count="true"></div>
    Hope this helps others.

  9. #9
    mikemurphy is offline Senior Member
    Join Date
    Mar 2006
    Location
    United Kingdom
    Posts
    207

    Default

    thats cool thnx
    8.0.1.4 W2008R2 64-bit MSSQL2005

  10. #10
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default

    Yes, I did... Hmm, still doesn't work. =(

    Quote Originally Posted by mikemurphy View Post
    Macecase - did you put this in your template

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:g="http://base.google.com/ns/1.0">