Inhalte aufrufen

Profilbild

Google Merchant export URL's

gmc

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 raetser

raetser

    Benutzer

  • Members
  • 27 Beiträge

Geschrieben: 07 March 2017 - 11:22

Hello guys,

I have set up GMC exports and all is working well, except that the links do not include the language in their URL...

So if I make 2 exports in 2 languages (english and german) of a product called example (beispiel in German), the URL's are:

while it should be:

 These are my language settings currently, don't know if that influences the generation of URLs in GMC, but on the website all URL's are generated correctly...

 

Angehängte Datei  seosettings.PNG   19.42K   0 Anzahl Downloads

 

Thanks,

Erwin



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 07 March 2017 - 12:43

I've created an issue for that.


Marcus Gesing

Smartstore AG


#3 raetser

raetser

    Benutzer

  • Members
  • 27 Beiträge

Geschrieben: 07 March 2017 - 14:20

Thanks guys,

I changed the following which seems to work in DataEntityHelper.cs in SmartStore.Services:

 

//dynObject._DetailUrl = ctx.Store.Url.EnsureEndsWith("/") + (string)dynObject.SeName;
dynObject._DetailUrl = ctx.Store.Url.EnsureEndsWith("/") + ctx.ContextLanguage.UniqueSeoCode + "/" + (string)dynObject.SeName;
 
Erwin



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: gmc