Author Topic: Does virtuemart support hreflang on product detail?  (Read 405 times)

MKI-Miro

  • Jr. Member
  • **
  • Posts: 160
Does virtuemart support hreflang on product detail?
« on: September 21, 2018, 09:24:33 am »
Hi

Does virtuemart support hreflang on product detail?

I have enabled System - Language Filter and add alternate meta tags to yes., but on product detail page I can see in source only this line

<link href="https://www.puzzlekosice.sk/en/puzzle-2000-pieces/african-women-ii" rel="canonical" />

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8592
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Does virtuemart support hreflang on product detail?
« Reply #1 on: September 21, 2018, 10:30:13 am »
no -- I have added hreflang to some sites via an ext. I built around the lang switcher module but not a simple task
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3377
  • using Matomo instead of Google Analytics
Re: Does virtuemart support hreflang on product detail?
« Reply #2 on: September 21, 2018, 19:58:23 pm »
Just an additional note: The hreflang tag is primarily used by Google to RESTRICT content in a certain language to one country. Joomla by default uses a two letter language code plus the two letter ISO country code. Thus using lang="en-GB" tells Google that the page content is primarily addressing people in the U.K and for example de-DE addresses German people.

So in my opinion one should only use hreflang if you want to address certain countries. If you want to address also the USA, Australia, etc. one should use only lang="en". And in case of German use lang="de". With lang="de-DE" you might restrict the page display in Austria (lang="de-AT") and Switzerland (lang="de-CH").


Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3532
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: Does virtuemart support hreflang on product detail?
« Reply #3 on: September 22, 2018, 00:03:04 am »
If you use my language switcher module, it add the href for all the alternate language you have.
Eg in my site
<link href="https://shop.st42.fr/fr/produits" rel="alternate" hreflang="fr">
for english page https://shop.st42.fr/en/products.
The <html lang="en-gb"> already explain to google that your page is in en-GB language, so you dont need an extra tag or meta.

Sean753

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Does virtuemart support hreflang on product detail?
« Reply #4 on: November 12, 2018, 13:02:24 pm »
Enable Joomla's System - Go Language Filter plugin and turn on Add Alternate Meta Tags.