Add currency to google rich snippets

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
10 years 8 months ago #145352

Hi,

Regarding the website "schema.org", the tag should be "princeCurrency".
schema.org/priceCurrency

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 76
  • Thank you received: 5
10 years 8 months ago #145353

Thank Jerome,

I tried that as well but it didn't seem to work either .. I'll try again and get back to you.

Regards
Robb


MItrax Trading
www.mitrax.com.au

Please Log in or Create an account to join the conversation.

  • Posts: 76
  • Thank you received: 5
10 years 8 months ago #145355

Hi Jerome,

The property priceCurrency doesnt show up on the structured data test tool either.

Regards
Rob


MItrax Trading
www.mitrax.com.au

Please Log in or Create an account to join the conversation.

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 8 months ago #145364

I invite you to read the documentation of Google on the rich snippet for products:
support.google.com/webmasters/answer/146750?hl=en

Non-visible text

In general, Google will use only marked-up data that is visible to the user. Hidden data will be ignored. However, in a few circumstances, it can be useful to provide both a machine-readable and a human-readable version of your content. For example, while the text string "Elvis's birthday" is significant to a great many human readers, it's not as meaningful to search engines as 1935-01-08. Similarly, human readers can infer the meaning of the $ symbol, but it can be useful to specifically tell search engines whether your prices are in pesos or dollars.

Google recognizes specific machine-readable values for the following Product tags:

category
priceValidUntil
currency
price
identifier
condition
The following example describes the condition of an item, providing Google with the machine-readable value used while displaying a text equivalent (Previously owned but in excellent condition) to the human reader.

<span itemprop="condition" content="used">Previously owned but in excellent condition</span>
Use the meta tag to specify content that is not visible on the page in any way. For example, to indicate to Google that your price is in USD, do this:

<meta itemprop="currency" content="USD" />

which is exactly what my modification adds to your pages. If the tool of Google doesn't pick it up, maybe it's a caching issue on their end until they reprocess the page ?

Please Log in or Create an account to join the conversation.

  • Posts: 76
  • Thank you received: 5
10 years 8 months ago #145368

Nicolas,

Agree

<meta itemprop="priceCurrency" content="USD" />

is exactly what is needed but it appears it needs to be nested in offer.

Acknowledging that I have hardcoded the currency for test purposes , the following appears to resolve my issue.




Regards
Rob


MItrax Trading
www.mitrax.com.au
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 8 months ago #145403

Hi,

Mmm. That's interesting... meta tags are usually added to the head of the page, not inside the body. That's the first time I see a meta tag used like that. They should add that information on their documentation as it's clearly non trivial.

I'll do the necessary modifications, thanks for the feedback.

Please Log in or Create an account to join the conversation.

  • Posts: 76
  • Thank you received: 5
10 years 8 months ago #145427

Nicolas,

It is a very unusual placement of a meta tag and like yourself I have never seen it before.

The troubleshooting tips on google help pages prompted me to think about it but I have since watched the video at the top of this page which seems to confirm the nesting requirement.

support.google.com/webmasters/answer/146750?hl=en

Thanks for your help on this one..

Kind Regards
Rob


MItrax Trading
www.mitrax.com.au

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum