Jump to content

Recommended Posts

Bonjour,

 

J'ai un presta 1.5.5.0 en multiboutiques avec une version fr et es.

Je souhaite ajouter la balise hreflang sur chaque page en récupérant l'url de la page active sur les 2 versions du type :

<link rel="alternate" hreflang="es" href="https://www.spanish.es/hola.html"/>
<link rel="alternate" hreflang="fr" href="https://www.french.com/bonjour.html"/>
Je ne vois pas comment faire :(
Un petit coup de main ?
Merci d'avance.
 

Share this post


Link to post
Share on other sites

Il te faut un petit module pour ça. J'en ai un sur mon shop, mais il en existe 2-3 autres, tant sur addons que sur d'autres sources

Edited by doekia (see edit history)

Share this post


Link to post
Share on other sites

Je suis intéressé par un tel module si @doekia a des liens à communiquer. Tout ce que j'ai pu trouver jusqu'à présent n'assure pas la correspondance des balises hreflang entre des pages de multi-boutiques différentes.

Share this post


Link to post
Share on other sites

Bonjour,

 

vous avez ce module qui gère le hreflang en multi boutique multi langue et surtout remplace le block language d'origine afin de proposer la bonne url dans les autre langues en changeant de domaine.

 

fr : http://www.prestatoolbox.fr/multi-boutique-prestashop/317-bloc-multi-langues-multi-domaines.html

en : http://www.prestatoolbox.com/multi-store-prestashop/317-block-multi-languages-multi-domains.html

Share this post


Link to post
Share on other sites

Hello,

 

It´s my first post here. I hope you can help me.

 

Webmaster tools give some errors in hreflang SEO url´s. My site has 4 languages (english, spanish, italian and Germany).

 

I translated URLs SEO (contact us, best sales, sitemap...). Now when I open view-source for example view-source:https://www.mydomain.com/es/contacte-con-nosotros appear:

 

<!- canonical y hreflang ->
<link rel="canonical" href="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/en/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/it/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/de/contacte-con-nosotros" />
<!- /canonical y hreflang ->
 
and it should be:
 
<!- canonical y hreflang ->
<link rel="canonical" href="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/en/contact-us" />
<link rel="alternate" hreflang="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/it/contattaci" />
<link rel="alternate" hreflang="http://www.mydomain.com/de/kontakt" />
<!- /canonical y hreflang ->
 
How can I solve it?
 
I hope your help!

Share this post


Link to post
Share on other sites

Thank you. Anyway all is correct in my manual hreflang. I have only a issue with URLs SEO that I think it´s possible to solve without any module.

Share this post


Link to post
Share on other sites

Correct? Then I did not understand your 1st question. Can we have a real url to understand it better?

Share this post


Link to post
Share on other sites

First your hreflang lang point to the http version of the site, not https

Second you dis not define any region,

 

And, on page contact-us, your hreflang are missing the language, and they friendly url is wrong

Edited by doekia (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

@jggustavo07

 

Let me clarify why you need a module. It could be yours but nothing but a module can do the job.

Each different type of page have different friendly-url scenario, product use link_rewrite from table product_lang, category link_rewrite from category_lang, other page data from mata_lang. The correct link should call a different method to generate the proper url $link->getProductLink() $link->getCategoryLink() ...

 

I hope now you understatnd why a module is compulsary

Share this post


Link to post
Share on other sites

yes it is my module, but feel free to use another one or build-up yours. Any how there is no way to address hreflang without a module

Share this post


Link to post
Share on other sites

I asked because I just used a module before and i follow with issues.

 

What is the waranty that this module will work well?

Share this post


Link to post
Share on other sites

For the record, the shop 1.6.0.4 did not completed the installation properly and did not hooked the module. Manual hook and the module worked like a charm.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More