News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Does virtuemart support hreflang on product detail?

Started by MKI-Miro, September 21, 2018, 09:24:33 AM

Previous topic - Next topic

MKI-Miro

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jjk

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

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.

Studio 42


parfumylacno

Quote from: GJC Web Design 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
Hello, Please, could you help me with correct settings of multilangue e-shop and its blog?

Does your language switcher support too hreflang="x-default" tag? <link rel="alternate" hreflang="x-default" href="https://shop.st42.fr/fr/produits" />

thank you

ps. this hreflang tutorial seems be very good - but i have to find out, how it should be implement in Joomla and virtuermart - to example, how make or add manualy xml sitemap to automatical sitemap (to example Jsitemap pro) :)
Owner of e-shop https://www.parfumylacno.sk with perfumes FM Group

parfumylacno

and one more question - does your product add hreflang to Joomla sites - articles, categories.. too?
Owner of e-shop https://www.parfumylacno.sk with perfumes FM Group