• English
    • ruРусский
    • ukУкраїнська
    • enEnglish
logo logo
380 (97) 162-68-00

Have questions? Call us!

Additional contacts:

380 (97) 162-68-00

380 (63) 162-68-00

Online consultants:

grebovich

651-232-979

380 (97) 162-68-00

office@web-stydia.com

Schedule:

Mon-Fri from 9:00 to 22:00

Sat-Sun: Day off

  • Home
  • Services
    • Website Development
    • Development of online stores
    • Development of Landing Page
    • Contextual advertising
    • SEO website promotion
    • Administration and content
    • Acceleration and optimization, virus clean
    • Web Hosting and Domain Registration
    • The complex of other services
  • Ready websites
    • Ready online stores
    • The other ready sites
  • News articles
  • Our works
  • Reviews
  • Usefull
    • SEO tools
      • Generator CNC links online
      • Online register converter
      • Online Keyword Match Type Converter
    • Download video of social networks
    • Password generator online
    • Email Protection from spam bots
  • Requisites
  • FAQ
  • Contacts
  • Home
  • Services
    • Website Development
    • Development of online stores
    • Development of Landing Page
    • Contextual advertising
    • SEO website promotion
    • Administration and content
    • Acceleration and optimization, virus clean
    • Web Hosting and Domain Registration
    • The complex of other services
  • Ready websites
    • Ready online stores
    • The other ready sites
  • News articles
  • Our works
  • Reviews
  • Usefull
    • SEO tools
      • Generator CNC links online
      • Online register converter
      • Online Keyword Match Type Converter
    • Download video of social networks
    • Password generator online
    • Email Protection from spam bots
  • Requisites
  • FAQ
  • Contacts

Change of the logo along with language switching in opencart

How to make the logo in opencart change with the switching of the language in the store.

Home Notes and Opencart improvements Change of logo along with language switching
Change of logo along with language switching
Change of the logo along with language switching in opencart
Creation, development, manufacturing sites | WEB-STYDIA.COM

Change of logo along with language switching

13.08.2017
by Василий
Notes and Opencart improvements
No Comment
5/54 ratings

I am often asked by users of the site as well as customers, those who use several different languages on their online store, how to make it possible to change the logo along with switching the language on the site, that is, when switching opencart from Russian into Ukrainian, which would change itself Site logo.

Everything is really very simple, there are certainly many different ways to do this, but I'll show you today how quickly and very simply to solve this problem.

And so to change the logo with the language in opencart, you just need to change a few lines in the file /catalog/controller/common/header.php

In the above file, we find:

1
2
3
4
5
if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
            $data['logo'] = $server . 'image/' . $this->config->get('config_logo');
        } else {
            $data['logo'] = '';
        }

And change to the following code:

1
2
3
4
5
if ($data['lang'] == 'ru') {
     $data['logo'] = $server . 'image/'.('ru/logo.png');
} else {
     $data['logo'] = $server . 'image/'.('uk/logo.png');
}

After we go to the folder image and create there two folders ru and uk and fill in your logo for the Ukrainian version of the folder uk and for the Russian version of the folder ru respectively.

That's basically all you need to do, now you have the option to display the logo in opencart for the selected language on the site.

USEFUL ADVERTISING ON THE SITE

Like this?
Comment, share with your friends!

Facebook Vkontakte OK Mail.ru Twitter Pinterest Viber Telegram
Tagged: change the logo, change the logo together from the language, how to change the logo, localization for the logo, Logo in opencart, multilanguage logo

You may also like

Date of receipt in the product card opencart
28Jun2018
0

Date of receipt in the product card opencart

We display information for a certain group of users
19Jun2018
0

We display information for a certain group of users

Identifying the visitor’s city by IP address
22May2018
0

Identifying the visitor’s city by IP address

Need help pay?
Ask, do everything quickly and efficiently!

ORDER SERVICE
[]
1 Step 1
Your nameProvide your name
Your phone numberIndicate your phone number
Your E-mailIndicate your email address
Message subjectEnter the subject of your message
Your messageWrite here your message
0 /
Previous
Next

No Comment

You can post first response comment.

Leave A Comment

Click here to cancel reply.
Please enter your name. Please enter an valid email address. Please enter a message.

Categories

Different Design Notes
CSS
HTML
jQuery
PHP
Photoshop tutorials
Notes and Opencart improvements
Useful Wordpress Notes
Optimization and promotion
Advertising and promotion
Notes Server Administrator
Video Tutorials OpenCart

Recent publications

  • Newspaper – современный новостной шаблон WordPress (5489609)
    Newspaper – современный новостной шаблон WordPress (5489609)
    29.04.2020 Василий0
  • Animated SVG modal window
    Animated SVG modal window
    13.04.2020 Василий0
  • How to show the current date on the site?
    How to show the current date on the site?
    13.04.2020 Василий0
  • Stylish video background for the site.
    Stylish video background for the site.
    12.04.2020 Василий0
  • Simple tabs for a site on CSS3
    Simple tabs for a site on CSS3
    06.09.2018 Василий0

Advertising on the website

Copyright © 2010-2018 . Все права защищены.
Разработка web-stydia.com
Сгенерирована за: 0.788 | Запросов к БД: 127 | Потребление памяти: 19.57MB
Order website development
Buy ready
online store
Ask a Question