Hey @samc Could you share the code snippet from your theme where you’re generating the og:price:amount and og:price:currency meta tags?
Usually, this would be in the layout/theme.liquid file within the <head> section. Also, when you switch to the Canada market, does your URL change to something like yourstore.com/en-ca/products/hat? Just want to confirm whether the issue is with how you’re accessing the price/currency values in Liquid versus a market detection problem. Hope to hear from you soon!
Yes. I’ve included my entire snippet down at the bottom.
I do have different URLs for US and canada. It’s adding the en-ca as the first slug as opposed to being a subdomain, e.g.
US: mystore dot com / products / hat
CA: mystore dot com / en-ca / products / hat
The thing I don’t understand is actually a ‘best practice’ question. If I’m looking at the site from canada, should those two OG:PRICE fields be $14 & CAD? Or is it better to have them be the original price ($10 & USD) across all markets, because it’s better for Google and whatever else to read?
Back to code - I was looking at Horizon, which is slightly different. Horizon says this:
So it’s using product.price and cart.currency.iso_code
Hey @samc - thanks for following up and sharing the solution here, really appreciated (will definitely be helpful for other folks stumbling across this in the future). Let me know if I can help with anything else!