[Skip to main content](#vessel-content)

#   Add currency to google rich snippets

##

- **[geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")**
- [![geekbyte's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8118-geekbyte "View geekbyte's Profile") Topic Author
- [ Offline](/forum/user/8118-geekbyte)

Less More

- Posts: 26
- Thank you received: 3
-
-

13 years 3 months ago -  13 years 3 months ago [\#115616](#115616) by [geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")  *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#115616 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")* was created by *[geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")*

Hi,

I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).

So far i've worked out google is getting the snippet price from this field:
Code:

&lt;span class="hikashop_product_price_full"&gt; &lt;span itemprop="price" class="hikashop_product_price hikashop_product_price_0"&gt;$24.00&lt;/span&gt; &lt;/span&gt; &lt;/span&gt;

It it possible to somehow easily add &lt;span itemprop="currency"&gt;AUD&lt;/span&gt; or similar into this code?
I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it ![:)](/media/kunena/emoticons/3.png ":)")

I fear having the "US" currency listed in my google results will drive domestic customers away who are my main target base.

An example of one of my pages is here: [ www.geekbyte.com.au/index.php/component/...blood-splatter-apron](http://www.geekbyte.com.au/index.php/component/hikashop/product/12-dexter-blood-splatter-apron)

I'm also happy to hard-code it into my site somehow to get this info correctly displayed

Last edit: 13 years 3 months ago by [geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#115643](#115643) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#115643 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi there,

Did you enabled the Microdata plugin? It's an Hikashop plugin which use your product data to create tags for google snippets (if I'm right).
You should try this and tell us if it doesn't work for your currencies ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")**
- [![geekbyte's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8118-geekbyte "View geekbyte's Profile") Topic Author
- [ Offline](/forum/user/8118-geekbyte)

Less More

- Posts: 26
- Thank you received: 3
-
-

13 years 3 months ago [\#115795](#115795) by [geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")  Replied by *[geekbyte](/forum/user/8118-geekbyte "View geekbyte's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#115795 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi,

I have that plugin enabled but I currently can't see the currency field in the sites HTML / php code. Google webmaster tools doesn't pick it up either.
Not sure if i've done something funny to disable this data or not.
Hopefully you can assist.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago -  13 years 3 months ago [\#115823](#115823) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#115823 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi,

I've done some tests through the [ google rich snippets test tool](http://www.google.com/webmasters/tools/richsnippets) and it seems to correctly read the price and its currency. Did you test it through this test tool ?

Last edit: 13 years 3 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#144749](#144749) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144749 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi,

Did you get an answer to this ? I am having exactly the same issue .

Search for "Mitrax 1011" in Google and you will see what I mean.

The snippet data contains price but no currency indicator &amp; Google seems to assume USD.

Cheers
Rob

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#144813](#144813) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144813 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Are you using the last version of Hikashop?
And could you give a link to your page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#144868](#144868) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144868 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Yes I'm running the latest release.

[ www.mitrax.com.au/store/product/41-schmi...-pens-black-ink.html](http://www.mitrax.com.au/store/product/41-schmidt-1011-m-ballpoint-refill-to-suit-papermate-pens-black-ink.html)

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 8 months ago [\#144889](#144889) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144889 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

I do see the currency in the snippet of Google results page for your price:

[ ![h6412740.png](/forum/attachment/15450) ](/forum/attachment/15450 "h6412740.png")

- [ ![h6412740.png](/forum/attachment/15450) ](/forum/attachment/15450 "h6412740.png") [ ](/forum/attachment/15450?download=1 "h6412740.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#144921](#144921) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144921 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Interesting this is what a screenshot from google.com.au

[ ![h18fa20c.png](/forum/attachment/15452) ](/forum/attachment/15452 "h18fa20c.png")

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![h18fa20c.png](/forum/attachment/15452) ](/forum/attachment/15452 "h18fa20c.png") [ ](/forum/attachment/15452?download=1 "h18fa20c.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#144922](#144922) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144922 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Should I say this is what a screenshot from google.com.au looks like.

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 8 months ago [\#144964](#144964) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#144964 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

I do see it correctly on google.com.au regardless of whether I'm logged in my google account or not.
Can you try again in incognito mode (a browser mode for anonymous surfing) ? I guess that you should also see the price without the US in that case.

Google and its personalized results...
I guess that it's because you display your currency with the $ symbol. If you edit your currency settings to display the prices like that: AUD$ 9.99 or something similar, it should be able to display the price in AUD regardless of the user searching for the product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#145050](#145050) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145050 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi Nicolas,

Thanks for working with me on this . Incognito makes no difference:

[ ![h2dee492.png](/forum/attachment/15467) ](/forum/attachment/15467 "h2dee492.png")

The google test tool shows the following:

[ ![hfd8b2ec.png](/forum/attachment/15468) ](/forum/attachment/15468 "hfd8b2ec.png")

Would adding pricecurrency into the snippet help ?

[ ![h844ad9e.png](/forum/attachment/15469) ](/forum/attachment/15469 "h844ad9e.png")

Kind Regards
Rob

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![h2dee492.png](/forum/attachment/15467) ](/forum/attachment/15467 "h2dee492.png") [ ](/forum/attachment/15467?download=1 "h2dee492.png")
- [ ![hfd8b2ec.png](/forum/attachment/15468) ](/forum/attachment/15468 "hfd8b2ec.png") [ ](/forum/attachment/15468?download=1 "hfd8b2ec.png")
- [ ![h844ad9e.png](/forum/attachment/15469) ](/forum/attachment/15469 "h844ad9e.png") [ ](/forum/attachment/15469?download=1 "h844ad9e.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 8 months ago [\#145072](#145072) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145072 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Try to add the code: Code:

$currency_id = $this-&gt;mainCurrency(); $null = null; $currencies = $this-&gt;getCurrencies($currency_id,$null); $data=$currencies[$currency_id]; $body=str_replace('&lt;/head&gt;', '&lt;meta itemprop="currency" content="'.$data-&gt;currency_code.'" /&gt;&lt;/head&gt;', $body);

before: Code:

JResponse::setBody($body);

in plugins/system/hikashopproducttag/hikashopproducttag.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#145130](#145130) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145130 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

:silly:

[ ![hedd9a1f.png](/forum/attachment/15481) ](/forum/attachment/15481 "hedd9a1f.png")

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![hedd9a1f.png](/forum/attachment/15481) ](/forum/attachment/15481 "hedd9a1f.png") [ ](/forum/attachment/15481?download=1 "hedd9a1f.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 8 months ago -  12 years 8 months ago [\#145145](#145145) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145145 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Try that code instead: Code:

$currency_id = hikashop_getCurrency(); $null = null; $currencyClass = hikashop_get('class.currency'); $currencies = $currencyClass-&gt;getCurrencies($currency_id,$null); $data=$currencies[$currency_id]; $body=str_replace('&lt;/head&gt;', '&lt;meta itemprop="currency" content="'.$data-&gt;currency_code.'" /&gt;&lt;/head&gt;', $body);

Last edit: 12 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#145148](#145148) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145148 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

:dry:

[ ![h88281c1.png](/forum/attachment/15485) ](/forum/attachment/15485 "h88281c1.png")

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![h88281c1.png](/forum/attachment/15485) ](/forum/attachment/15485 "h88281c1.png") [ ](/forum/attachment/15485?download=1 "h88281c1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

12 years 8 months ago [\#145189](#145189) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145189 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Please use the code in my last message after I edited it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago [\#145272](#145272) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145272 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi Nicolas,

This is what I pasted into hikashopproducttag.php

[ ![h0ae5906.png](/forum/attachment/15515) ](/forum/attachment/15515 "h0ae5906.png")

Cheers
Rob

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![h0ae5906.png](/forum/attachment/15515) ](/forum/attachment/15515 "h0ae5906.png") [ ](/forum/attachment/15515?download=1 "h0ae5906.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#145342](#145342) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145342 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Hi,

It is logical that the plugin "hikashopproducttag" does not contain the function "getCurrencies".
I think it will be better if you call this function on this owner, the HikaShop currency class, like Nicolas wrote in his post.
You don't have to improvise you know, just to copy and past the code that Nicolas wrote for you ![:)](/media/kunena/emoticons/3.png ":)")

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")**
- [![Mitrax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8602-mitrax "View Mitrax's Profile")
- [ Offline](/forum/user/8602-mitrax)

Less More

- Posts: 76
- Thank you received: 5
- [](http://www.mitrax.com.au)
-

12 years 8 months ago -  12 years 8 months ago [\#145350](#145350) by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")  Replied by *[Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile")* on topic *[Add currency to google rich snippets](/forum/4-how-to/85744-add-currency-to-google-rich-snippets#145350 "Hi,  I've noticed when Google displays my products my item is listed in US Dollars - I'm assuming this is because I'm not giving google a rich snippet to say it should be in Australian Dollars (AUD).  So far i've worked out google is getting the snippet price from this field:  It it possible to somehow easily add AUD or similar into this code? I'm reasonably familiar with PHP/javascript and can do basic modification - if you could at least point me towards the files where I could edit this I'd appreciate it :)  I fear having the &quot;US&quot; currency listed in my google results will drive domestic customers away who are my main target base.  An example of one of my pages is here:   www.geekbyte.com.au/index.php/component/...blood-splatter-apron  I'm also happy to hard-code it into my site somehow to get this info correctly displayed")*

Jerome,

Thanks for pointing out the logic of the code in Hikashop I am pleased that I am in safe hands with someone who understands it as I can honestly say that I have no idea. As for improvising ... I guess I did to a degree i.e. I made an unintentional cut and paste error. :oops:

Complete code is now in and snippet is appearing in the metadata

[ ![hfc44fae.png](/forum/attachment/15528) ](/forum/attachment/15528 "hfc44fae.png")

but is not showing up in the google test tool. I changed the price to confirm the test tool was picking up changes.

[ ![h74deadb&#95;2014-02-23.png](/forum/attachment/15527) ](/forum/attachment/15527 "...2014-02-23.png")

Is it possible that the currency needs to be nested as a property of the offer before it can be picked up ?

Thanks in Advance.
Kind Regards
Rob

---

MItrax Trading
[ www.mitrax.com.au](http://www.mitrax.com.au)

- [ ![h74deadb.png](/forum/attachment/15526) ](/forum/attachment/15526 "h74deadb.png") [ ](/forum/attachment/15526?download=1 "h74deadb.png")
- [ ![h74deadb&#95;2014-02-23.png](/forum/attachment/15527) ](/forum/attachment/15527 "...2014-02-23.png") [ ](/forum/attachment/15527?download=1 "...2014-02-23.png")
- [ ![hfc44fae.png](/forum/attachment/15528) ](/forum/attachment/15528 "hfc44fae.png") [ ](/forum/attachment/15528?download=1 "hfc44fae.png")

Last edit: 12 years 8 months ago by [Mitrax](/forum/user/8602-mitrax "View Mitrax's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg1NzQ0LWFkZC1jdXJyZW5jeS10by1nb29nbGUtcmljaC1zbmlwcGV0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.106 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
