d
Topic
Posts:
3
Last edited January 06, 2014
g
3
upvotes

Shopify + rich snippets (Structured Data)

Last year, early in December we added the code to our Shopify web-store template to make use of structured data and essentially "rich snippets". Originally we wanted only the rating to be seen in search results (http://schema.org/AggregateRating) but after some research we decided to add product offer (http://schema.org/Offer) data as well.

So the code was added and Google Structured Data Testing Tool could see our micro-data. I was aware that it would take some time to become visible in Google search results. I was checking its status via Webmaster Tools but it took about a month to show something under Search Appearance > Structured Data (before that it was only the message "We do not detect any structured data on your site").

However Google still doesn't show any rich snippets if you search for products from our web-store. A few days ago Webmaster Tools reported that there were three errors with our structured data:

It's quite strange, because the data our template code provides is sufficient and Google testing tools don't show any errors on those pages.
Anybody know what this "Missing: Name" is all about? What are the chances that this is actually preventing Google from showing rich snippets for our products at all?

PS. I Googled around for this error and got nothing... Any help/tips would be appreciated!

i
Replies
Posts:
3
January 07, 2014

Hey David, thanks for your input!

I noticed that GWT (Google Webmaster Tools) is reporting different numbers. We added all site aliases to our GWT account: main domain with and without WWW prefix, plus we also bought alternative domain (which simply redirects to the main one). So there are 4 "sites" in the dashboard and all of them show different stats. On the alternative domain GWT still can't seem to pick up our structured data. But I guess it's just a matter of time until Google collects it all...

So, here are two URLs of the pages reported for containing "Missing: Name" error:

http://www.hutchla.com/products/greatness-ii-t-shirt-white
http://www.hutchla.com/products/juice-crew-hoodie-black

PS. Store name is actually Hutch LA, not Hutchia ;)

Posts:
5840
January 07, 2014

Hi David,

That's so helpful! Thank you so much!

I find it hard to understand why rich snippets end up not being used in search results, despite this tool reporting that everything is fine. Maybe I am doing it wrong too.

Could you have a look at this code of mine: templates/product.liquid">https://github.com/Shopify/skeleton-theme/blob/master/templates/product.liquid and give me your earnest critique, if you have the time, whenever you have the time?

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
5840
January 07, 2014

That code of mine is used in this fake shop. I am sorry I threw Liquid code at you, I should have provided a live example.

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
5840
January 07, 2014

Hi David,

your site is also generating both RDFa and schema.org microdata markups.

I am not aware of RDF markup being present. Can you elaborate on that?

Google does not want website owners to mark up ratings and reviews that were obtained on third-party sites.

We have a free app for reviews that add reviews on the product page and a review submission form using JavaScript. We could store the rating of the product in a metafield — if I am not mistaken we may actually be doing that already — and so we could add the rating in the HTML, not with JavaScript, even if that means using an invisible element like a meta tag. Would that work? Can we show an overall rating to Google using a meta tag, and Google will use it?

Hmm, not sure why my markup example got formatted that way and an extra character got added

I am so sorry about this, it's a very annoying bug when adding code here that contains URLs.

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
5840
January 07, 2014

if you use Google's Structured Data Testing Tool, you'll notice that on the example pages that you provided, the site is generating both types of tags.

Oh thanks for that! So it looks like Open Graph tags needed to make Facebook work for sharing content is interpreted as RDFA code by Google. Unfortunately, those open graph tags are very important. They may be more important than rich snippets. Is it based on your experience that Open Graph tags don't play along well with rich snippets for Google?

You could instead simply show the overall aggregate rating and mark that up, which Google does show as a rich snippet in search results.  Just one warning about using the aggregate rating markup:  If you're not going to mark up each individual review with structured data, you need to use the "ratingCount" property, not "reviewCount".  That's a common mistake I see with many aggregate rating markups.  When you use "reviewCount", Google expects you to mark up each review, whereas if you use the "ratingCount" markup, it's not necessary.

Thank you immensely for that tip!

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
5840
January 07, 2014

  Sorry about the false alarm.

On no worries at all! 

You are amazingly helpful and knowledgable, David. I really appreciate you taking the time!

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
3
January 08, 2014

David, thank you for reminding me about proper nesting of structured data!
I changed template code a little and now Structured Data Testing Tool reports with rich snippets. Not all products are picked up though, but I guess we'll have to wait til Google reindexes the site.

Posts:
5840
Last edited January 10, 2014

Hi David!

I discovered that our free offering reviews app already generates the necessary markup for ratings. That's great news for me, I am so happy about this!

It uses the code that you recommended.

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
Posts:
1
January 19, 2014

David,

I am having the same problem with the Missing: Name error. Would you mind terribly taking a look at one of my product pages and see what I've done wrong?

 

http://dropsprops.com/products/gray-chevron-photography-backdrop

Fiona Member
Posts:
1
March 18, 2014

Hi David,

I just found this thread and am wondering if you help us. We're a business reviews site but have had no luck with getting the reviews and aggregate ratings to show in the rich snippets.

A couple of examples of our pages are;

http://www.womo.com.au/reviews/ONeil-Couriers-Port-Melbourne/

http://www.womo.com.au/reviews/Campbelltown-Automotive-Leumeah/

http://www.womo.com.au/reviews/Warratina-Lavender-Farm-Cafe-Natte-Yallock/

We have become so frustrated that we have created a different, much simplified version of our page - but are still having no luck. A couple of these are;

http://www.womo.com.au/business/Alice-Springs-Nursery-Alice-Springs

http://www.womo.com.au/business/Rats-Bar-Albany

The weird thing is, in the last month or so, we have started getting results in Webmaster tools showing that the structured data for these pages has been detected. (All of the examples I've given show up here.) There are no errors or warnings or anything that I can see. But none of them actually show reviews in google search results. They also test fine using the testing tool.

Any advice or suggestions you could give would be much appreciated!

Thanks, Fiona

Posts:
4
May 15, 2014

David:

We are also experiencing issues with our product pricing not showing up in Google search results.  I have removed schema.org markup since RDFa data is showing up in the Structured Data Testing tool.  Here are our current results:


rdfa-node

property:

url: http://www.steelcitysupply.com/products/1108-u35

title: 1108-U35 EMKA EK333 Key

description: EMKA Key silver steel with grip polyamide black.  Key is cut to code 333.Click Here for Technical Specs

image: //cdn.shopify.com/s/files/1/0261/7879/products/333-1_medium.jpg?v=1397143505

I am missing the tags for price.  I have a tried several different methods, but none of them work.  Can you make a suggestion?

5374f2dec38aa539431729f7 thumb
Posts:
4
May 15, 2014

David:

I have added the Schema.org markup.  

view-source:http://www.steelcitysupply.com/collections/frontpage/products/1108-u35

http://www.steelcitysupply.com/products/1108-u35

The product price was displayed in the search results for the first few days, then it disappeared.

Posts:
6
May 15, 2014

Hey, just weighing in here. David, this is some fantastic information. Thank you.

Does anyone know if it's possible to show aggregate ratings on the home page using the Shopify reviews app, thus allowing structured data ratings in search engine results for the home page?

Posts:
2
Last edited May 23, 2014

Hello - we are also getting this: 

Error: Missing required field "name (fn)".

http://naturalstacks.com/collections/products/products/magtech

Any tips on how we could fix this (or otherwise improve our page?) Thank you!!

 

 

Posts:
2
May 26, 2014

Thanks so much David! I made these changes.

Could you possibly take a second look at our page and see if you have any other suggestions?

Specifically, I'm wondering - 

  • I replaced the meta tags with hidden spans for price, currency, and instock. I did this because our visible Price element has the currency as part of the string, not broken out separately. Did I do this correctly?
  • In Google's rich text preview, at the bottom it says "More by Natural Stacks ." << with a space after the string but before the period.  Is there any way to change this so there's no period or no space? Here's a screenshot

Thank you again!!

Posts:
46
Last edited May 26, 2014

David,

WOW! This looks amazing. I've implemented these in my product pages.

One quick question: My shop currency is set to ILS, so the microdata being sent is:

Item 1
type:	http://schema.org/offer
property:	
availability:	http://schema.org/InStock
pricecurrency:	ILS
price:	₪215

This will probably not make sense to 99% of the people. Is it location specific? What happens if I set a metafield for each product with the price in USD as:

          <meta itemprop="priceCurrency" content="USD" />
          <meta itemprop="price" content="{{product.metafields.microdata.priceinusd }}" />

Is that cheating or would Google accept that?

Ben Klinger, Studio Ve
Posts:
46
May 27, 2014

Hi David,

Thanks for the reply. I've changed the price to contain only numbers, and moved the Brand schema to the end of my template.

Regarding the logo, I'm passing the name + logo in the Brand Schema. Is that not correct? Should it be under Organization?

The rating is passed via Shopify official's review app. I don't think I can change it.

Ben Klinger, Studio Ve
Posts:
46
June 05, 2014

Hi David,

Sorry for my late reply. I wanted to check and see how it looks up once google crawls my site again.

I changed from brand to organization. I added the gtin13 numbers, but I thing that something is off. Some parameters just aren't showing - Price, In stock are the two main things. I can see them here:

http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fstudiove.com%2Fproducts%2Fmanifold-clock

But not when I search. I added them about a week before adding the video microdata, which is already showing.

Any idea what I've done wrong?

Thanks!

Ben Klinger, Studio Ve
Posts:
14
June 10, 2014
g
1
upvotes

Hi David,

My name is Robert an I run an online clothing store. I just want to say that I recently visited your website and saw that you offer free SEO analysis, and wanted to know what you need to qualify for it and is there a catch?

I am still a beginner when I comes to implanting SEO features onto my website and recommendations or tips will be helpful.

Thanks

Posts:
31
September 17, 2014

Does anybody know what is the code (And where to add in the theme liquid) to aggregate all review on a store?

Posts:
31
September 18, 2014
g
1
upvotes

Hi David,

 

Im currently using Shopify Reviews App to collect all product reviews on my website. Im not sure what it is called, but im looking to add a coding in my liquid that will sum up all my reviews on my store and show the total number of reviews and store star rating based on the reviews when people search my store name on google.

 

please see example in link below under aggregate reviews

 

https://support.google.com/webmasters/answer/146645?hl=en

 

Jessica

 

 

Posts:
31
September 18, 2014

I know shopify reviews already does this for each individual product, but im trying to figure out whats the proper coding to have these sumed up when people search my store name.

Posts:
2
Last edited December 04, 2014

Hi David, I noticed that you responded on this thread 3 months ago, so I am not sure if you are still active on this forum. We have been struggling from long time and asking help around Rich snippets. I read the thread above and found that our problem is very similar to Caroline. We have an online store http://www.nzwatchstore.co.nz Now when we look at the structured data from the webmaster it looks like that google is able to read it. Also when we test it using structured data testing tool, it shows us the rich snippet (Link below). However, when we try to search a product in google, there is no rich snippet seen. Initially we thought it is just a matter of time and rich snippet will start appearing in the result, but its been 2-3 months now and no success !! We are more concerned about the review/rating snippet but would definitely love to have other markups as well, (offer/product). We use Shopify product review app to collect reviews (unfiltered). Someone suggested to change from data vocabulary to schema markup as it  is preferred by Google. Can you suggest something. Thanks

Structured Data testing tool Result:

https://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.nzwatchstore.co.nz%2Fproducts%2Fdiesel-dz7221-mens-watch

any help would be greatly appreciated

Seo thumb
Posts:
2
December 08, 2014

Hi David, Thanks for your reply. So after banging our heads with schema markup and data vocabulary markups - We finally have given up and have to turn back to you again. Looking at the schema markup examples, it seems that it is not a complex task specially when we just have to mark up only product.liquid with variables. However, this simple looking task of replacing Data-vocabulary with schema tasks has become a mission for us. So this time simple question is that can you suggest someone or company who can do this task for us.  Any help would be appreciated. 

Thanks 

Sachit

http://www.nzwatchstore.co.nz

Product page : http://www.nzwatchstore.co.nz/products/diesel-dz7221-mens-watch

Posts:
15
December 13, 2014
Posts:
6
May 01, 2015

Im having a hard time with the google webmaster tools structured data testing tool telling us that there is no structured data detected, even though there is! 

Here's an example: https://www.vaporjedi.com/collections/batteries/products/sub-ohm-cell-18650-35a-2800mah-battery

This battery listing has structured markup and GWT tells me it does not detect any structured data. Regardless of which page I test.

Anyone have any idea why it is doing this? The Rich Snippets are not a new addition to the website.

Posts:
10
Last edited August 06, 2015

Resolved

Posts:
246
August 19, 2015

I had rich snippets and they were working great, but then I noticed google is not displaying my star ratings. 
I used the structured data testing tool but it says -  No structured data present... not sure what happened, I have not changed anything??

Can someone help me please : )

 

Susan - Alley Kids
Posts:
246
Last edited August 19, 2015

Hi David, 
Thanks so much, but I admit I don't completely understand this stuff.

Last night it said, No data present but now when I tested this - http://www.alleykids.com/products/field-guide-to-animal-tracks-woodland-art

It shows - Product - All Good
              Breadcrumb - 2 errors , title and url - missing and required
              Review - aggregate - All Good 

I honestly don't know where to start. In 2013 I added the snippets. someone helped me from the forums and then I added Shopify Reviews in April 2014, asked Shopify if I already have Rich Snippets (in this thread - https://ecommerce.shopify.com/c/shopify-apps/t/new-product-reviews-app-by-shopify-183579 )
will the reviews and rich snippets work together and they said yes, I don't need to change anything. Is this what you mean? Sorry, I just don't completely understand : )
Thanks so much!

Susan - Alley Kids
Posts:
246
Last edited August 19, 2015

Thanks so much David! 
There are other people saying there rich snippets and star ratings have disappeared, this might be affecting them also. 
How much would you charge to take a look at this and possibly fix it or at least tell me what to do.

Or If i uninstall the Shopify review app and go with Yotpo reviews, would that help? 

Thanks!

 

Susan - Alley Kids
Posts:
5
September 11, 2015

Hi David,

It looks like you've been very helpful on this thread, so I thought I might try reaching out. I am looking to add event markup to our site that has course dates. I would specifically like to get all the courses on the home page, because that receives the most exposure in the SERP. Harvard does a nice job  in this search here. That is what we'd like and think would be best for the user. I am running into a couple of issues:

1) Shopify defaults to Product markup. A Shopify rep recommended a hack/workaround where I copy product pages and create them as regular pages. I don't believe this would be ideal because it might throw off all of our analytics.

2) Editing the theme.liquid seems to go to all pages not the home page alone. Do I add the markup here and then in all other areas the content is pulled from? 

Any recommendations would be greatly appreciated.

Thanks!

Geoff

Posts:
5
Last edited September 14, 2015

Thanks for the reply David. Yes, we'll update the upcoming course info (date, price) on the homepage under "our courses."  We also have those details currently available here on our course page

The only way I am aware of editing that content in the homepage is through our storefront editor. Should add in the pertinent info (dates, price, etc) and add markup there? (We're using html in other places in the storefront editor). Please advise - thanks!

Posts:
5
September 15, 2015

I just added the dates to the page along with "Online" because it looks like a location is required for events. The dates don't seem to appear in the markup helper or webmaster tools for the highlighter tool yet. Should I make a go at adding markup without these tools?

 

Posts:
5
September 16, 2015

Hi David,

I did not yet add the markup. I tried using the markup helper to tag the event name, date (using the ISO format), and the location (name = Online). Then I went to the storefront editor and tried to add the markup in the area of the attached image.

Here is what I attempted to change the h3 title to in the storefront editor:

 <div itemscope itemtype="http://schema.org/Event" class="home-in-line-text">
        
          <h3 itemprop="name">Insights for Innovation</h3>

Here is what I attempted to change the the text to:

Discover deep insights, so that you can see the world differently and solve problems in new and innovative ways. <p align="center"><a href="/products/insights-for-innovation-september-1st-october-19th" class="action enroll-button">ENROLL NOW</a></p>
<p><i><meta itemprop="startDate" content="2015-09-15">September 15 - October 19 (<span itemprop="location" itemscope itemtype=" itemprop="name">Online</span></span>)</i></p>

This did not seem to work so I rolled back the changes. Now that I think about it, it may be because I left out the </div> tab. I know that adding the HTML in the text does work because I added the italics.

Is that how you would go about adding the markup? Seems like an odd thing to do to add the markup in the storefront editor. (It'd be easier to just edit an html file.

Screen shot 2015 09 15 at 9.47.12 pm thumb
Posts:
5
September 29, 2015

UPDATE: I could not edit the homepage template files myself. I did two things. I used the highlighter, and then I used this JSON-LD markup and added to every page using the Google Tag Manager. Do you think that will work?

 

<script type="application/ld+json">
[{
  "@context": "http://schema.org",
  "@type": "EducationEvent",
  "name": "Storytelling for Influence",
  "startDate" : "2015-11-02",
  "url" : "http://www.ideou.com/products/storytelling-coming-soon",
  "location" : {
    "@type" : "Place",
    "name" : "IDEO U",
    "address" : "Online"  
      },
  "offers" : {
    "@type" : "Offer",
    "url" : "http://www.ideou.com/products/storytelling-coming-soon"
  }
}]
</script>
<script type="application/ld+json">
[{
  "@context": "http://schema.org",
  "@type": "EducationEvent",
  "name": "From Ideas to Action",
  "startDate" : "2015-11-09",
  "url" : "http://www.ideou.com/products/from-ideas-to-action",
  "location" : {
    "@type" : "Place",
    "name" : "IDEO U",
    "address" : "Online"  
      },
  "offers" : {
    "@type" : "Offer",
    "url" : "http://www.ideou.com/products/from-ideas-to-action"
  }
}]
</script>

 

Posts:
39
October 28, 2015

My rich snippits (price and availability) are not showing up in Google search.

In webmaster tools all my products have an error message under structured data that indicates they are missing price.  When I click on one of them and test with the live data tool everything shows up fine, the tool does not report any issues.  Yet on searches I'm getting no price and no availability showing, even though I see the code in my product.liquid.

Any reason why it's not showing up on the Google searches?  And why I'm getting an error message on all my products yet the live test tool says they're fine?

Here's a product.

http://voluptuousvinyl.com/products/1984-1984

Dena Member
Posts:
22
Last edited November 17, 2015
g
1
upvotes

My rich snippits (price and availability) are not showing up in Google search.

In webmaster tools all my products have an error message under structured data that indicates they are missing price.  When I click on one of them and test with the live data tool everything shows up fine, the tool does not report any issues.  Yet on searches I'm getting no price and no availability showing, even though I see the code in my product.liquid.

Any reason why it's not showing up on the Google searches?  And why I'm getting an error message on all my products yet the live test tool says they're fine?

 

you are not alone in this,  I am experiencing the identical issue. ((

Google indicates "missing price" errors.

 

Sharon B Member
Posts:
67
November 22, 2015
g
1
upvotes

"you are not alone in this,  I am experiencing the identical issue.

Google indicates "missing price" errors."

 

I too am having the exact same problem.  Google Webmasters is showing I have almost 500 errors, all with "missing price" errors.  What to do?

Old Dog Member
Posts:
7
November 22, 2015

I'll chime in here also. We have the same problem with Google Webmaster showing only missing price but the "testing" tool shows all good.

It is not all of our products but a random number. If Google re-indexes 200 product pages one day  it might be 20 with "missing price" today and tomorrow if they re-index 300 product pages it might be only 5 or so. No pattern I can tell.

I can submit the product URL with "missing price" field for re-indexing and it will get picked up and pricing shows correctly.

We use Shopify's New Standard theme which has be in place since May 2015.

Could there just be a problem with Google randomly failling to detect the price field?

It seems quite strange all checks good with validator tool and them Google fails to detect the price. The same product template is used for every product. So why would you see radom missing price data?

Probbably a simple answer, maybe someone @ Shopify could enlighten us on whats happening.

Thanks

 

 

 

Mhixson Member
Posts:
3
November 25, 2015

Same here, some of our products show a "pricing error". I recently did Data Highlighting in GWT and highlighted the price, so don't know what problem is.

Dena Member
Posts:
22
December 08, 2015
g
2
upvotes

I have contacted the customer support. They recommended me to use their experts that are not free!!!! I truly believe this is not my fault, I didn't touch the markings in the theme code and why should I have to pay extra? 
I suggest to everyone, who has the missing price problem, write to customer support so they will recognize that is more global issue, regardless of theme used. This is the only way to solve this. 

Mhixson Member
Posts:
3
December 08, 2015

I suspect this may be realted to strike-through pricing unless someone has already ruled this out. In GWT I saw 2 prices side by side without the striuke-thru on the second one. So in affect there were 2 prices.

Posts:
39
December 11, 2015

Hello David,

Thanks for the reply.  Had I seen it sooner I would have responded sooner.  

It's a rather common problem and the fix involves editing at least one of your theme files. I can't specifically tell you what to do offhand because every theme is different.

I'm using the Minimal theme, I have not changed it at all so esstenitally you're saying right out of the bag Shopify's theme doesn't do what it SHOULD do... any suggestion on how to fix this?  

I'd also suggest that you mark up your product descriptions and the product type/category so that Google and other search engines and machines can better understand what exactly you're selling. 

How do I do this?  Again isn't this something Shopify should already have setup in their own standard theme?

And if you'd like to mark up the names of the songs on the albums, you really should include them as part of your product markup instead of as a separate markup. 

The tracklisting I copied from another source so the markups on that must be coming from that source.  I'm not interested in manually entering the tracklisting for every title I sell which eventually will be 1,000's.  Looking at the HTML each track has itemtype of http://schema.org/MusicRecording I'm assuming I'd have to remove all those... if that's the case I don't know if it's worth the trouble.  The tracklistings are more for informational purposes for customers, don't really care if the search engines pick those up or not as most people search for Artists or Album titles.

Would appreciate any info or if you can point me to some information that has info on correcting, what to me seems Shopify should have already implemented.  I've done a lot of websearching and can't find any clear solution for this.  I'll keep an eye out more regualarly for your response.

Thanks

Posts:
39
December 12, 2015

David,

So here's my product code (again this is the minimal theme).  In looking through Google's help sections on this and schema.org and it appears I have all the proper itemtypes mentioned and in the right places (again this is defaulted to whatever Shopify released, I have not changed anything).  Google says everything is right when I test a product page, but no price and no availablity are showing up on search listings and I get NO PRICE errors under Websmaster tools... so what's missing because I'm seeing what looks to be correct markups to me...

<div id="product" class="{{ product.handle }}" itemscope itemtype=";
  <meta itemprop="url" content="{{ shop.url }}{{ product.url }}" />
  <meta itemprop="image" content="{{ product.featured_image.src | product_img_url: 'grande' }}" />

  <div class="row clearfix">

    <!-- Begin breadcrumb -->
    <div class="span12">
      <div class="breadcrumb clearfix">
        <span itemscope itemtype=" href="{{ shop.url }}" title="{{ shop.name | escape }}" itemprop="url"><span itemprop="title">{{ 'general.breadcrumbs.home' | t }}</span></a></span>
        <span class="arrow-space">&#62;</span>
        <span itemscope itemtype=";
          {% if collection %}
            <a href="{{ collection.url }}" title="{{ collection.title | escape }}" itemprop="url">
              <span itemprop="title">{{ collection.title }}</span>
            </a>
          {% else %}
            <a href="/collections/all" title="{{ 'general.breadcrumbs.all_products' | t }}" itemprop="url">
              <span itemprop="title">{{ 'general.breadcrumbs.products' | t }}</span>
            </a>
          {% endif %}
        </span>
        <span class="arrow-space">&#62;</span>
        <strong>{{ product.title }}</strong>
      </div>
    </div>
    <!-- End breadcrumb -->
    <!-- Begin product photos -->
    <div class="{% if product.images.size == 1 or settings.thumbnails_position == 'below' %}span6{% else %}span5{% endif %}">

      {% assign featured_image = product.selected_or_first_available_variant.featured_image | default: product.featured_image %}
      <!-- Begin featured image -->
      <div class="image featured">
        {% if settings.enable_product_image_zoom %}
          <img src="{{ featured_image | img_url: '1024x1024' }}" alt="{{ featured_image.alt | escape }}" />
        {% else %}
          <a href="{{ featured_image | img_url: '1024x1024' }}" id="placeholder" data-image-id="{{ featured_image.id }}">
            <img src="{{ featured_image | img_url: '1024x1024' }}" alt="{{ featured_image.alt | escape }}" />
          </a>
          <ul id="lightbox" class="hidden">
            {% for image in product.images %}
            <li>
              <a href="{{ image.src | img_url: 'master' }}" class="fancy" rel="gallery" data-image-id="{{ image.id }}"></a>
            </li>
            {% endfor %}
          </ul>
        {% endif %}
      </div>
      <!-- End product image -->

      {% if product.images.size > 1 and settings.thumbnails_position == 'below' %}
      <!-- Begin thumbnails -->
      <div class="thumbs clearfix">
        {% for image in product.images %}
        <div class="image span2{% cycle 'last-in-row': '', '', ' last-in-row' %}">
          <a href="{{ image | img_url: '1024x1024' }}" data-image-id="{{ image.id }}">
            <img src="{{ image | img_url: 'large' }}" alt="{{ image.alt | escape }}" />
          </a>
        </div>
        {% endfor %}
      </div>
      <!-- End thumbnails -->
      {% endif %}

    </div>
    <!-- End product photos -->

    {% if product.images.size > 1 and settings.thumbnails_position == 'right' %}
    <!-- Begin thumbnails -->
    <div class="span1">
      <div class="thumbs clearfix">
        {% for image in product.images %}
        <div class="image">
          <a href="{{ image | product_img_url: '1024x1024' }}" data-image-id="{{ image.id }}">
            <img src="{{ image | product_img_url: 'compact' }}" alt="{{ image.alt | escape }}" />
          </a>
        </div>
        {% endfor %}
      </div>
    </div>
    <!-- End thumbnails -->
    {% endif %}


    <!-- Begin description -->
    <div class="span6">

      <h1 class="title" itemprop="name">{{ product.title }}</h1>

      <div class="purchase" itemprop="offers" itemscope itemtype=";
        <meta itemprop="priceCurrency" content="{{ shop.currency }}" />
        {% if product.available %}
        <link itemprop="availability" href="http://schema.org/InStock" />
        {% else %}
        <link itemprop="availability" href="http://schema.org/OutOfStock" />
        {% endif %}

        {% assign variant = product.selected_or_first_available_variant %}
        <h2 class="price" id="price-preview">
          <span itemprop="price">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}
        </h2>
      </div>

      {% assign hide_default_title = false %}
      {% if product.variants.size == 1 and product.variants.first.title contains 'Default' %}
        {% assign hide_default_title = true %}
      {% endif %}

      <form id="add-item-form" action="/cart/add" method="post" class="variants clearfix">

        <!-- Begin product options -->
        <div class="product-options">

          <div class="select clearfix{% if hide_default_title %} hidden{% endif %}">
            <select id="product-select" name="id" class="hidden">
              {% for variant in product.variants %}
              <option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money }}</option>
              {% endfor %}
            </select>
          </div>

          {% if settings.display_quantity_dropdown and product.available %}
          <div class="selector-wrapper">
            <label>{{ 'products.general.quantity' | t }}</label>
            <input id="quantity" type="number" name="quantity" value="1"  min="1" class="tc item-quantity" />
          </div>
          {% endif %}

          <div class="purchase-section{% if product.variants.size > 1 %} multiple{% endif %}">
            <div class="purchase">
              <input type="submit" id="add-to-cart" class="btn" name="add" value="{{ 'products.general.add_html' | t | escape }}" />
            </div>
          </div>

        </div>
        <!-- End product options -->

      </form>

      <div class="description">
        {{ product.description }}
      </div>

      {% if settings.social_sharing_products %}
      <!-- Begin social buttons -->
      <div class="social">
        {% include 'social-sharing' %}
      </div>
      <!-- End social buttons -->
      {% endif %}

    </div>
    <!-- End description -->

  </div>

  <!-- Begin related product -->
  {% if settings.show_related_products %}
    {% include 'related-products' %}
  {% endif %}

</div>
Dena Member
Posts:
22
December 12, 2015

I'm using the Minimal theme, I have not changed it at all so esstenitally you're saying right out of the bag Shopify's theme doesn't do what it SHOULD do... any suggestion on how to fix this?  

How do I do this?  Again isn't this something Shopify should already have setup in their own standard theme? 

100% agree. I use minimal theme which was developed by Shopify and therefore they should fix it. If I start changing things in the code, Shopify will likely refuse to help me because I modified the code...  vicious circle..

I'm trying to get clear response. No luck so far. Disappointed in Shopify customer service... They pretend like its my problem.. (

 

Posts:
39
December 18, 2015

Thanks David, I've adjusted that, we'll see if that fixes it.

Dena Member
Posts:
22
December 18, 2015

Hi David, 

I'm confused because according to one of the google forums (see below), where you also were involved in the discussion, suggests quite the opposite thing - separate $ from the price. Would you please clarify this.

With respect to the price, the only recommendation that I can make is to remove the $ sign from the price value, see below.

 

Like this: 

 

$ <span class="product-price" itemprop="price">459.00</span>

 

Or like this:

 

<span class="product-price" itemprop="price" content="459.00">$ 459.00</span>

 

Although I recommend correcting it regardless (and just in case it helps), I don't believe it's the reason for the missing "price" warning in Webmaster Tools. Why? There have been quite a few Shopify users reporting the same issue and I noticed in one of the threads that David mentioned that he'd been working with Shopify users to correct the issue - I got the impression it wasn't a minor fix like the one I mentioned above.

full discussion is here.

Posts:
39
December 28, 2015

David,

I applied that change and it doesn't appear to have fixed anything, my missing price error continues to increase.  What's odd is its not on all my products and I've noticed on some the error will eventually disappear. I guess I'll just live with it and maybe fool around with it if a ever have any free time to.  It would be nice if it worked as it should, but I've read posts from people saying it never really seems to work right anyway, so it seems like it is more trouble than it's worth.

Dena Member
Posts:
22
December 28, 2015

To Voluptuous Vinyl:

I checked your website using "Inspect Element" tool. Since you use Minimal Theme, you likely have the same problem as I (hopefully) had.  What I believe is happening that html tag <h2> is causing the markup to be stripped out. Be aware, you will need to change the original code in order to resolve the issue.

 

Here is what you need to do:

1. Go to your product.liquid and find the following piece of code:

<h2 class="price" id="price-preview">
          <span itemprop="price">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}
        </h2>

2. Remove <h2> tag and replace the price markup with the code below:

<span class="product-price" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}" id="price-preview">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}

Save changes.

3. Go to  styles.scss.liquid  and replace class ".purchase h2.price " with ".product-price ". (You might need to add additional CSS styling to your ".product-price " class to match your h2 headings style. )

Save changes.

4. Check Google's Webmaster Tools in a week or so​..

More info here and here

 

Posts:
39
December 28, 2015

Lena,

I will keep this info handy.  Please let me know if it does solve your error messages, if it does I'll proceed to make the same changes.

Thanks

Posts:
39
Last edited December 29, 2015

So some but not all product pages are displaying price error messages?  Can you please share one that is and one that isn't?  Because if all things are the same, then likely it's just a Search Console reporting error and not your markups.  Unfortunately, the numbers you see reported in the Search Console (Webmaster Tools) are not always correct and sometimes they are way off.  It's been that way for a while. 

David above is a picture of what I'm seeing.  It says 203 items 201 with errors.  I have a lot more than 203 items.  More like 300 to 400 so I'm not sure why all of them aren't showing up here.  As you can see the last two items are showing the prices.  Everyday it appears more items are showing up on here and registering the error code.  But not sure why those specific two aren't.

Item without the error: http://voluptuousvinyl.com/products/smokey-wilson-sings-the-blues-1978

With the error: http://voluptuousvinyl.com/products/go-west-dancing-on-the-couch-1987

Both of those have a "last detected" date of 12/21.  Here's another one with the error that was last detected on 12/27 http://voluptuousvinyl.com/products/chet-baker-quintette-chet-baker-quintette-1963 Both this item and the item I listed without the error were created around a the same time a couple months ago.

These are both vinyl records so product type and catagory is the same.  But this error doesn't appear to be speific to one product type as I'm seeing multiple items from all catagories and products registering the missing price error.  Back on December 24th it appears my price errors dropped by 10 then they started to rise again...

 

Dena Member
Posts:
22
December 30, 2015

@David:

Thanks David for your reply.  I agree this is very odd.. I tried your method but, unfortunately, it didn't seem to work. I checked a couple of Google threads on this topic and, eventually, I was recommended to try to remove h2 tag. I'm not sure how trustworthy "Inspect Element" tool is, but I can clearly see the difference. See below:

Here is the price markup that includes <h2> tag (<span> tag with a markup is not displayed):

 

Here is the price without <h2> tag:

...still need some time to see if this change will solve the problem. So far, no new errors have been reported.

Lena.

Posts:
39
January 02, 2016

(You might need to add additional CSS styling to your ".product-price " class to match your h2 headings style. )

Lena, 

I tested implementing those changes, but I'm not sure what you mean with the above statement.  Basic HTML is about all I know, so can you elaborate? 

Also when I make those changes any items on sale show a duplicate original price slashed out, when I removed those changes and go back to the original code the duplicate slashed price goes away.  I looked at your website and it's doing it as well here's an example on your site http://www.stellaremnant.com/collections/all/products/jeff-pietro-israel-vines-disintegrate-ep has two slashed out $14.00.  Any idea what's causing that?

Dena Member
Posts:
22
January 03, 2016

@Voluptuous Vinyl

Oh, yeah! I missed it.. thanks for noticing!! The following code fixes the problem. Just replace the old version with this one. 

<div class="product-price"  id="price-preview">
<span class="product-price" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}
</div>

 

Answering the question regardin the CSS,

styles.scss.liquid contains visual styles that interact with theme settings (elements like titles, prices, images, links, etc). It also includes class attribute set to price on your product page, which was hidden in <h2> (that we removed). See an example below:

.purchase h2.price { margin: 0 0 10px; display: block; font-size: 24px !important; color: {{ settings.price_color }}; }

Since we deleted <h2> tag, we also deleted some formatting (such as font size and line height) assigned to the price through the settings "customize theme >> Typography >> Sub Heading Styles (h2 elements)". In order to preserve ( or match) this styling, you would have to rename ".purchase h2.price " to ".product-price" and add new visual properties (like "line-height", "padding") to the price element if necessary.

By the way, I have a GOOD NEWS guys. Google sees the price markup.



Lena.

 

Posts:
39
January 03, 2016

Lena,

Great! I have implemented the changes, hope I have similiar results.  The styling seems to be the same when I change the code so I won't try to mess with that.  Thanks so much for your help!

Posts:
39
January 05, 2016

Lena,

When you initally made the changes did errors stop registering or did it take a while?  I made the changes Saturday night so far I'm still having a couple items a day being added with errors... last detection date on a lot of them is 1/3/16 (Sunday).

Dena Member
Posts:
22
January 05, 2016

@Voluptuous Vinyl

You know, some of the products (very randomly selected) still appear with errors. I have a few errors registered on 1/3/16 (like 5 products were indexed in that day and 4 of them were marked with a missing price). But in general, the dynamics shows a decrease of errors, so I assume it will take some time. I had 60 errors a week ago, now the number dropped to 47.

P.s. if you made changes in the Currency Formatting like David suggested earlier, I recommend you to change it back to the original settings (with a space between dollar sign and amount). 

Posts:
39
January 05, 2016

Lena,

Okay I'll wait it out and see if it starts going down.  I did do the changes David suggested, but I just went back to undo them and there is spaces there now... so maybe changing the code automatically reset it... 

Dena Member
Posts:
22
Last edited January 07, 2016

@Voluptuous Vinyl

Today I went to your website to check if the browser sees the price markings. I also checked mine and unexpectedly found that the <span> tag with price markings is not displaying on both websites (I used "Inspect Element" tool on Chrome). Before I made last changes, it was there. So I checked a couple of things and came to the conclusion that the root of the problem lies in jQuery (JavaScript toolkit). The script is located at the bottom of theme.liquid and looks like this:

var selectCallback = function(variant, selector) {

    if (variant) {
      if (variant.featured_image) {
        var newImage = variant.featured_image;
        var mainImageEl = $('.image.featured img')[0];
        Shopify.Image.switchImage(newImage, mainImageEl, MinimalTheme.switchImage);
      }
      if (variant.price < variant.compare_at_price) {
        jQuery('#price-preview').html(Shopify.formatMoney(variant.price, "{{ shop.money_format }}") + " <del>" + Shopify.formatMoney(variant.compare_at_price, "{{ shop.money_format }}") + "</del>");
      }
      else {
        jQuery('#price-preview').html(Shopify.formatMoney(variant.price, "{{ shop.money_format }}"));
      }
      if (variant.available) {
        jQuery('#add-to-cart').removeAttr('disabled').removeClass('disabled').val({{ 'products.general.add_html' | t | json }});
      }
      else {
        jQuery('#add-to-cart').val({{ 'products.general.sold_out_html' | t | json }}).addClass('disabled').attr('disabled', 'disabled');
      }
    }
    else {
      jQuery('#add-to-cart').val({{ 'products.general.unavailable_html' | t | json }}).addClass('disabled').attr('disabled', 'disabled');
    }

  };

Briefly, the script is connected to the product price by id="price-preview". Whenever this ID is presented in the code (like I have included it into <div> element around the price - previously, it was placed into <h2> tag of the original code), the <span> tag with price markings disappears. See an example below.

Current version:
<div class="product-price" id="price-preview">$ 12.00 <del>$ 14.00</del></div>

After removing id="price-preview":
<span class="product-price" itemprop="price" content="12.00">$ 12.00</span>

 

Since I'm not an expert, I couldn't find any alternative solution for this issue than just remove [ id="price-preview" ] and leave <span> tag on its own, like this:

<span class="product-price" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del class="product-price">{{ variant.compare_at_price | money }}</del>{% endif %}

It's probably not the best way to resolve the problem but, at least, something. :) I believe such type of issue should be fixed by theme developers.
 

 

Posts:
39
Last edited January 07, 2016

@Lena Dean

I think I'm just going to revert back to the original code and just leave it alone, according to Google's own structure data tool everything was right.  If this is Google Chromes problem I'm not up for having to make tweaks everytime they release an update that blocks it again.

Ironically I had a couple items that were showing amounts and once I changed the code they vanished.  I have a sneaking feeling this has something to do with the suggested items that show up on my product pages and that those are the items that are registering all the errors.  Eventually I may remove suggested items and see if that changes anything.  I'm thinking this because I have A LOT more products than are showing up on the Structured Data Product page.  

I've read a lot of posts that have said even once they fixed the error messages Google still wasn't showing price and other structured data in the search results on a lot of their products so all this might be for nothing anyway. And also (this could be totally unrelated, but it's odd) my impressions on Google have damastically dropped since I changed the code I went from averaging 800+ impressions a day to 200 impressions a day, it will be interesting to see if that returns.

Dena Member
Posts:
22
January 15, 2016

@Voluptuous Vinyl
Hey.  I checked the Google Webmasters data today. There is no single error reported since I made last changes (Jan 06). Only 14 errors left (all of them were registered before January 6), quite a drop from last week's number of 43! See attached screenshot below​:

 

 

Dena Member
Posts:
22
February 02, 2016

No 'missing price' errors anymore. I fixed it...

richarda Member
Posts:
1
February 04, 2016

I have an error on products with variants regarding Rich Snippets and Auto Updates that perhaps someone can help with.

I have two shopify stores publishing data to the Google Merchant Center. I have added microdata myself to the theme, in addition to what was already there.

I have found in both instances that only for products with variants, GMC reports:

"Automatic item updates: Missing schema.org microdata availability information"
"Missing microdata for condition"
"Automatic item updates: Missing schema.org microdata price information"

However, if I follow a product link through from GMC and check the markup with Google's Structured Data Testing Tool, the markup for all three of these items is there and fine.

This has been the case since launch about a month ago, so Google has had plenty of time to recrawl the sites and find the data.

Ads do render for vairants products, but it does mean that Google is not performing automatic item updates for price or availability.

Where do I need to add markup to resolve this error?

Example product: http://shop.lushlongboards.com/products/machine-3d

And a link from GMC to a variant of the same product that supposedly does not have the right markup: http://shop.lushlongboards.com/products/machine-3d?utm_medium=cpc&utm_source=googleshopping&variant=10838009415

Any ideas would be awesome!

Posts:
3
February 11, 2016

I was able to further diagnos the issue and have found the follow.

Lena, you were on the right track when you identify the javascript at the bottom of theme.liquid as the cause of the issue.  This is definitely what's causing the span to disappear.

Essentially what the snippet of code you reference does is update the Price displayed on the product page when items are either out of stock, or, if you have multiple variants,  update the price as the users changes their variant selection in real time. This means that you will want this code to work properly and previous solutions of removing the h2 tag altogether or removing the id="price-preview" will break this code and should be avoided.

Looking further at the code, it seems like this code always fires on page load and thus always replaces the h2 tag, removing the span tag before google crawler can get to it. So this means we need to either update the javascript to include our span tag or move it outside of the h2 tag.

Unfortunately, I see issues with both of these options.  With both methods I have an issue when the item is sold out.  I'd get the following, which does not provide a price. 

<h2 class="price" id="price-preview">
  <span itemprop="price">Sold Out</span>
</h2>

 

For now, I'm just adding a meta tag with the price until I come up with a better solution.

<meta itemprop="price" content="{{ product.price | money }}" />

 

Posts:
1
February 18, 2016

I am unable to solve the missing price error on my product pages as well.  When I go into google search console, it reports all of these "missing price" errors in schema.  However, when I make use of google's testing tool, it reports that the product is "All good".  

I am attaching an example of a product page in question here:  http://www.ramjet.com/products/imac-memory-for-model-17-1-8gbx2 and a link here https://developers.google.com/structured-data/testing-tool/?url=http://www.ramjet.com/products/imac-memory-for-model-8-1-6gb.  Thanks in advance for your help.

<form action="/cart/add" method="post" enctype="multipart/form-data">

<div id="product-variants" class=" hidden">
<!-- <label>Title</label> -->
<select id="product-select" name="id" class="hidden">
<option value="6501335172">Default - $114.00</option>
</select>
</div>


<div id="form-controls" class="clearfix">

<div id="product-price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"; class="price-field">
<meta itemprop="priceCurrency" content="USD" />
<link itemprop="availability" href="http://schema.org/InStock" />
<span itemprop="price" content="114.00">$114.00</span>
</div>

<div id="product-add">
<input type="image" value="Add to Cart" src="//cdn.shopify.com/s/files/1/0197/5874/t/28/assets/addtocartLGred.png?1648851658479350395" onmouseover="this.src='//cdn.shopify.com/s/files/1/0197/5874/t/28/assets/addtocartLGblue.png?1648851658479350395'" onmouseout="this.src='//cdn.shopify.com/s/files/1/0197/5874/t/28/assets/addtocartLGred.png?1648851658479350395'" onClick="continue()">
</div>

<p class="link-rebate">
<a class="zoomy" id="rebate-inline" href="//cdn.shopify.com/s/files/1/0197/5874/t/28/assets/rebatechart.png?1648851658479350395"> </a>
</p>
</div>
</form>

Best,

Steve 

 

Posts:
3
February 18, 2016

I hope you guys dont mind me getting in on this topic because I apparently have some issues with Google understanding my data and have been using the hylighter tool to try to get things sorted out for Google. I have a couple questions that I hope you guys can give me some help with.

When I'm using the highlighter tool should I mark the "related products" that are at the bottom of my product page, or should I only mark the main product that the page is for? If I should mark the related products that brings me to my next question. When I try to mark my product reviews it keeps tagging the review information with the related products, especially the last product that is listed. I cant seem to get it to associate the review info with the primary product on the page.

Also, should I highlight a collection page that displays many products or just the actual product pages themselves?

Also, when I hit publish, google keeps telling me to do more pages until it understands, how many pages should I expect this take? 

Thanks so much!

Dena Member
Posts:
22
February 26, 2016

Guys, I solved the problem by inserting "price-preview" id into span tag and removing <del> from the code. All "missing price" errors were cleaned up within a month.

<span class="your price class" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}" id="price-preview">{{ variant.price | money }}</span>


 

Posts:
1
April 05, 2016

Hello Lena,

I wanted to know whether only the last line fixed the code or all the changes you've made before are necessary as well?

If you paste this into google's structered data testing tool, it seems there is an issue with the "<del>{{ product.compare_at_price_min | money }}</del>{% endif %}</h2>" section:

 <div class="span6" itemscope itemtype="http://schema.org/Product">;
      
      <meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
        <meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}">
      
      <h1 class="title"><span itemprop="name">{{ product.title }}</span></h1>
      
      <div class="purchase" itemscope itemtype="http://schema.org/Offer">;
        <h2 class="price" id="price-preview"><span itemprop="price">{{ product.price_min | money }}</span>{% if product.price_min < product.compare_at_price_min %} <del>{{ product.compare_at_price_min | money }}</del>{% endif %}</h2>
      <meta itemprop="priceCurrency" content="EUR" />
        </div>

since i have no idea about html and alike, i wanted to ask how to change that code (without breaking it > James Hess' comment) to fix the missing price error.

thanks in advance,

Stefan

Posts:
39
April 11, 2016

@Lena

Guys, I solved the problem by inserting "price-preview" id into span tag and removing <del> from the code. All "missing price" errors were cleaned up within a month.

So you made these additional changes?  I did everything you said to do prior to the above comment and everything cleared up until March 30th when for some reason all the errors started coming back again. 

Dena Member
Posts:
22
Last edited 12 months ago

@Voluptuous Vinyl

I'm sorry you are still fighting this problem :( It's hard to say what's wrong in your case.. I've attached my final (working) version of the code in comparison to the original one. Maybe this will help you to sort this out.  In my case, the "missing price" errors are disappeared once I changed the code to the one you will see below. 

Good luck.
Lena.
 


product.liquid, Original Code:

<div class="purchase" itemprop="offers" itemscope itemtype=";
<meta itemprop="priceCurrency" content="{{ shop.currency }}" />
{% if product.available %}
<link itemprop="availability" href="http://schema.org/InStock" />
{% else %}
<link itemprop="availability" href="http://schema.org/OutOfStock" />
{% endif %}

{% assign variant = product.selected_or_first_available_variant %}

<h2 class="price" id="price-preview">
<span itemprop="price">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}
</h2>

</div>

 

I replaced the following original part of the code:

<h2 class="price" id="price-preview">
<span itemprop="price">{{ variant.price | money }}</span>{% if variant.price < variant.compare_at_price %} <del>{{ variant.compare_at_price | money }}</del>{% endif %}
</h2>

with the following code:  

<span class="product-price" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}" id="price-preview">{{ variant.price | money }}</span>

 

Posts:
39
12 months ago

@Lena,

I'm not having the problem anymore I implimented what you said here:

Guys, I solved the problem by inserting "price-preview" id into span tag and removing <del> from the code. All "missing price" errors were cleaned up within a month.

<span class="your price class" itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency }}" id="price-preview">{{ variant.price | money }}</span>

In addition to what had solved it before (not sure why it stopped working) and the errors have been clearing up again over the past couple weeks.  But thanks for following up. 

Posts:
1
10 months ago

Hi,

I hope someone here can help me?

I am having a warning from schema.org for my product page:

https://www.subliworks.com/products/dwight-schrute-the-office-photo-collage-t-shirt-all-over-printed-sublimation

It is regarding the $ in the price. How would I change the code to get rid of it?

Thanks from a newbie.

Alex Czarto Shopify Merchant business.czarto.com
Posts:
35
4 months ago

Here is a writeup on how to add microdata to your product pages in order to enable automatic product updates in Google Merchant Centerhttps://business.czarto.com/2016/12/13/adding-schema-org-microdata-to-your-shopify-product-pages-to-enable-google-merchant-center-automatic-updates-with-product-variant-support/

The relavant details to this conversation:

Code to get your price / availability / condition correct (this must be nested within the Product itemscope):

<!-- BEGIN Offer itemscope -->
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  <meta itemprop="priceCurrency" content="{{ shop.currency }}" />
  <meta itemprop="price" content="{{ product.selected_or_first_available_variant.price | money_without_currency | remove: ',' }}" />
  <meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition"/>
  {% if product.selected_or_first_available_variant.available %}
  <link itemprop="availability" href="http://schema.org/InStock" />
  {% else %}
  <link itemprop="availability" href="http://schema.org/OutOfStock" />
  {% endif %}</div>
</div>

Reading through the rest of the post should give you the directions needed to get started with this. I'm also happy to answer specific questions here.

Best,

Alex

http://www.manitobah.ca/ - http://www.canadianicons.ca/ - http://www.pendleton.ca
Posts:
11
about 2 months ago

Ok same problem here. i have submitted my site back in December now is March. Google get some of my pages indexed, seems no problem.

Tested all my links at: https://search.google.com/structured-data/testing-tool/u/0/

for example: https://www.bijouteriegonin.com/products/standard-jesus-piece-fully-iced-lemonade-yellow

 

No error or warning.

 

However logged back in and checked with GOOGLE webmaster tool. It still says " We do not detect any structured data on your site"

 

May i know what did i do wrong and what seems to be the problem? :(

 

i like the old webmaster tool better now its getting all difficult.

 

Can someone be a sweetheart and please help :*(