Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is OpenCart 2.3 custom theme not showing?

I've read through some guides and watched a YouTube video on how to create a custom theme for OpenCart. After trying various things it still doesn't seem to be working right.

If I go to 'Extensions > Themes > Edit Store' I can switch the theme directory but this doesn't seem right. The question bubble there says changing the theme directory here is only for legacy support of older themes. Current themes should be available through 'System > Settings > Edit Store > General Tab (Select Theme Dropdown).

Why doesn't this seem to work? The new version is supposed to fall back on the default theme if something isn't available but it can't if I change the theme directory. I've even tried simply copying the whole default folder and renaming it.

like image 626
dstana Avatar asked Dec 04 '22 00:12

dstana


2 Answers

Opencart 2.3.0 :

Go to Extestions >> Extestions >> Choose the extension type >> Select Themes >> Edit Your themes >> change default theme. See screenshots:

1 : https://postimg.cc/image/ds02xcmbp/

2 : https://postimg.cc/image/bre4q9fk5/

like image 134
Rashedul Islam Sagor Avatar answered Feb 27 '23 20:02

Rashedul Islam Sagor


In file <Your project name>/catalog/controller/event/theme.php replace row 16 from:

$theme = $this->config->get('config_theme');

to:

$theme = $this->config->get($this->config->get('config_theme') . '_directory');
like image 40
Andrii Lytvynenko Avatar answered Feb 27 '23 22:02

Andrii Lytvynenko