Post by stathis1979 » Tue Feb 04, 2025 3:22 pm

Hello, I am new to the OpenCart world, so please forgive my questions!

Can I set the backend to German for specific users depending on the language?

The site is online but has not been found on Google yet. Does OpenCart have automatic indexing, or do I need to connect my website to Google Search Console first? If so, what is the best way to do this if I cannot upload a file via FTP?

Newbie

Posts

Joined
Wed Jan 18, 2023 7:07 pm

Post by stathis1979 » Tue Feb 04, 2025 3:38 pm

I have now added the HTML tag to the theme header.twig, and the site has been verified in Google Search Console.

For the sitemap, I used /sitemap.xml, but where is it defined what appears in the sitemap?


Google Search Console shows that 328 pages have been detected, but only five pages appear in Google search results!


And I see three errors in the status: "This is not a valid URL. Correct the URL and resubmit the data."

Examples:
URL: Line 1
Parent Tag: image
Tag: loc

URL: Line 1
Parent Tag: image
Tag: loc

URL: Line 1
Parent Tag: image
Tag: loc
Last edited by stathis1979 on Wed Feb 05, 2025 5:58 pm, edited 1 time in total.

Newbie

Posts

Joined
Wed Jan 18, 2023 7:07 pm

Post by nonnedelectari » Tue Feb 04, 2025 6:37 pm

stathis1979 wrote:
Tue Feb 04, 2025 3:38 pm
I have now added the HTML tag to the theme header.twig, and the site has been verified in Google Search Console.

For the sitemap, I used /sitemap.xml, but where is it defined what appears in the sitemap?
https://www.mavromatisgroup.gr/sitemap.xml

Google Search Console shows that 328 pages have been detected, but only five pages appear in Google search results!
https://www.google.com/search?q=site%3A ... e&ie=UTF-8

And I see three errors in the status: "This is not a valid URL. Correct the URL and resubmit the data."

Examples:
URL: Line 1
Parent Tag: image
Tag: loc

URL: Line 1
Parent Tag: image
Tag: loc

URL: Line 1
Parent Tag: image
Tag: loc
since you are using greek? seo urls for both your pages and images, you better urlencode them all.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by paulfeakins » Tue Feb 04, 2025 8:37 pm

stathis1979 wrote:
Tue Feb 04, 2025 3:22 pm
Can I set the backend to German for specific users depending on the language?
I don't think so, but in Chrome you can set a language and it automatically translates everything.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by stathis1979 » Wed Feb 05, 2025 12:45 am

urlencode them all.
and how do I do that!

Newbie

Posts

Joined
Wed Jan 18, 2023 7:07 pm

Post by stathis1979 » Wed Feb 05, 2025 12:47 am

paulfeakins wrote:
Tue Feb 04, 2025 8:37 pm
stathis1979 wrote:
Tue Feb 04, 2025 3:22 pm
Can I set the backend to German for specific users depending on the language?
I don't think so, but in Chrome you can set a language and it automatically translates everything.
ok, that's really cool from opencart, the simplest cms can do that!

Newbie

Posts

Joined
Wed Jan 18, 2023 7:07 pm

Post by by mona » Wed Feb 05, 2025 2:05 am

stathis1979 wrote:
Wed Feb 05, 2025 12:47 am
paulfeakins wrote:
Tue Feb 04, 2025 8:37 pm
stathis1979 wrote:
Tue Feb 04, 2025 3:22 pm
Can I set the backend to German for specific users depending on the language?
I don't think so, but in Chrome you can set a language and it automatically translates everything.
ok, that's really cool from opencart, the simplest cms can do that!
In future you might want to check the markeplace before asking you can find it here:
https://www.opencart.com/index.php?rout ... /extension

https://www.opencart.com/index.php?rout ... n_id=14449
https://www.opencart.com/index.php?rout ... n_id=38705
https://www.opencart.com/index.php?rout ... n_id=39181

If you can not find something suitable on the marketplace or you need it editing per specification there is also a commercial forum you can find it here:
viewforum.php?f=88

You also might want to take a look at the forum rules before posting you can find it here:
viewtopic.php?t=200480

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by nonnedelectari » Wed Feb 05, 2025 12:11 pm

stathis1979 wrote:
Wed Feb 05, 2025 12:45 am
urlencode them all.
and how do I do that!
in catalog/controller/startup/seo_url.php

add function:

Code: Select all

private function url_encode ($string) {
	// always ensure we do not double encode so decode first
	return urlencode(urldecode($string));
}
then change both occurrences of:

Code: Select all

$url .= '/' . $query->row['keyword'];
with:

Code: Select all

$url .= '/' . $this->url_encode($query->row['keyword']);
for the images it depends on how you set the image url to seo, via an extension or are those directly taken from the image filenames?

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by paulfeakins » Thu Feb 06, 2025 8:00 pm

stathis1979 wrote:
Wed Feb 05, 2025 12:47 am
paulfeakins wrote:
Tue Feb 04, 2025 8:37 pm
stathis1979 wrote:
Tue Feb 04, 2025 3:22 pm
Can I set the backend to German for specific users depending on the language?
I don't think so, but in Chrome you can set a language and it automatically translates everything.
ok, that's really cool from opencart, the simplest cms can do that!
Why add unnecessary complexity when the browser can do it?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Bing [Bot], khnaz35 and 37 guests