Inhalte aufrufen

Profilbild

Google Merchant export URL's

gmc

2 Antworten zu diesem Thema

#1 raetser

raetser

    Member

  • Members
  • 11 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...

 

seosettings.PNG

 

Thanks,

Erwin



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3033 Beiträge

Geschrieben: 07 March 2017 - 12:43

I've created an issue for that.


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 raetser

raetser

    Member

  • Members
  • 11 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




Auf dieses Thema antworten



  

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