Announcement

Collapse
No announcement yet.

Rich snippet validation failing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rich snippet validation failing

    Hi all,

    Not sure im getting the rich snippets code right or that its in the wrong place. but it does not seem to work.

    im using this code

    <!-- microdata start -->
    <div itemscope itemtype="http://data-vocabulary.org/Product">
    <meta itemprop="image" content="<actinic:variable name="CatalogURL" /><actinic:variable name="ProductImageFilenameRaw" />" />
    <meta itemprop="identifier" content="mpn:<actinic:variable name="ProductReference" />"/>
    <meta itemprop="name" content="<actinic:variable name="ProductName" />" />
    <meta property="og:type" content="product" />
    <meta property="og:title" content="<actinic:variable name="ProductName" />" />
    <meta property="og:url" content="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name="ProductPageName" encoding="perl" selectable="false" />');</actinic:block>" />
    </div>
    <div class="purchase_data" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
    <meta itemprop="condition" content="new" />
    <meta itemprop="currency" content="GBP" />
    <meta itemprop="price" content="<actinic:block php="true">echo preg_replace('/[^\d\.]/', '', '<actinic:block type="pricelist"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201"><actinic:variable name="TaxInclusivePrice" selectable="false" /></actinic:block></actinic:block>');</actinic:block>" />
    <meta itemprop="availability" content="In_stock" />
    <meta itemprop="seller" content="<actinic:variable name="CompanyName" />"/>
    </div>
    <!-- microdata end -->

    and using it the the "product page bodt RWD" in design.

    Can someone please check as its not validating

    www.sumpsandpumpsdirect.co.uk
    Reverse Osmosis Water Filters

    #2
    Can you show us a page it's on? I've looked at a couple of your product pages and don't see it.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      its should be on all product pages

      ive changed it to this????

      </div>
      <div itemscope itemtype="http://data-vocabulary.org/Product">
      <meta itemprop="image" content="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionImageFileName" />" />
      <meta itemprop="identifier" content="mpn:<actinic:variable name="ProductReference" />"/>
      <meta itemprop="name"content="<actinic:variable name="ProductName" />" />
      <meta property="og:type" content="product" />
      <meta property="og:title" content="<actinic:variable name="ProductName" />" />
      <meta property="og:url" content="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name="ProductPageName" encoding="perl" selectable="false" />');</actinic:block>" />
      </div>
      <div class="purchase_data" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
      <meta itemprop="condition" content="new" />
      <meta itemprop="currency" content="GBP" />
      <meta itemprop="price" content="<actinic:block type="pricelist"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201"><actinic:variable name="TaxInclusivePrice" selectable="false" /></actinic:block></actinic:block>" />
      <meta itemprop="availability" content="In_stock" />
      <meta itemprop="seller" content="<actinic:variable name="CompanyName" />"/>
      </div>

      is that a better one ?
      Reverse Osmosis Water Filters

      Comment


        #4
        I don't see anything obviously wrong from the code being generated. Except perhaps that the product and offer are in separate divs, is that allowed? What error message are you getting?

        <div itemscope itemtype="http://data-vocabulary.org/Product">
        <meta itemprop="image" content="http://www.sumpsandpumpsdirect.co.uk/acatalog/Semisom320.jpg" />
        <meta itemprop="identifier" content="mpn:48"/>
        <meta itemprop="name" content="Semisom 320 Grey Water Pump" />
        <meta property="og:type" content="product" />
        <meta property="og:title" content="Semisom 320 Grey Water Pump" />
        <meta property="og:url" content="http://www.sumpsandpumpsdirect.co.uk/acatalog/Semisom-320-Cellar-Sump-Pump-48.html" />
        </div>
        <div class="purchase_data" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
        <meta itemprop="condition" content="new" />
        <meta itemprop="currency" content="GBP" />
        <meta itemprop="price" content="360.00" />
        <meta itemprop="availability" content="In_stock" />
        <meta itemprop="seller" content="Sumps & Pumps Direct Ltd"/>
        </div>
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          Hmm.

          data-vocabulary.org seems to be an old and outdated format.

          Your 'in stock' format also doesn't appear to be current.

          Best check google for the current formats.

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            No errors now...

            All seems good with the new code using google validation tool.
            Reverse Osmosis Water Filters

            Comment


              #7
              Hi Kez - which new code are you now using?
              Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

              Comment


                #8
                I'm using this now, but im not sure its 100% - no errors when checking with google though.

                <div itemscope itemtype="http://data-vocabulary.org/Product">
                <meta itemprop="image" content="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionImageFileName" />" />
                <meta itemprop="identifier" content="mpn:<actinic:variable name="ProductReference" />"/>
                <meta itemprop="name"content="<actinic:variable name="ProductName" />" />
                <meta property="og:type" content="product" />
                <meta property="og:title" content="<actinic:variable name="ProductName" />" />
                <meta property="og:url" content="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name="ProductPageName" encoding="perl" selectable="false" />');</actinic:block>" />
                </div>
                <div class="purchase_data" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
                <meta itemprop="condition" content="new" />
                <meta itemprop="currency" content="GBP" />
                <meta itemprop="price" content="<actinic:block type="pricelist"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201"><actinic:variable name="TaxInclusivePrice" selectable="false" /></actinic:block></actinic:block>" />
                <meta itemprop="availability" content="In stock" />
                <meta itemprop="seller" content="<actinic:variable name="CompanyName" />"/>
                </div>
                Reverse Osmosis Water Filters

                Comment


                  #9
                  Thanks that's what I use but it isn't working any longer for me.
                  Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

                  Comment


                    #10
                    Ah it works now I changed SectionImageFileName to ProductImageFilenameRaw as per Norman's post here http://community.sellerdeck.com/show...4&postcount=19
                    Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

                    Comment


                      #11
                      If I put the code in here

                      https://search.google.com/structured-data/testing-tool

                      seems to be ok?
                      Reverse Osmosis Water Filters

                      Comment


                        #12
                        Yes that's where I was checking, and it didn't work until I changed that little bit of code. Said there were validation errors.
                        Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

                        Comment


                          #13
                          aha

                          like this works now

                          <meta itemprop="image" content="<actinic:variable name="CatalogURL" /><actinic:variable name="ProductImageFileNameRaw" />" />

                          job done!
                          Reverse Osmosis Water Filters

                          Comment


                            #14
                            Indeed it is!
                            Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

                            Comment


                              #15
                              removed the central </div>

                              and now getting this error

                              Ł587.98 (The property Ł587.98 is not a valid price specification. Learn more about http://schema.org/price.)

                              How am I getting that from this code

                              <meta itemprop="price" content="<actinic:block type="pricelist"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201"><actinic:variable name="TaxInclusivePrice" selectable="false" /></actinic:block></actinic:block>" />

                              or do I need that div in the middle?
                              Reverse Osmosis Water Filters

                              Comment

                              Working...
                              X