Post by DesignCart » Mon Oct 08, 2018 1:26 pm

Hi

How get variable with theme name or theme path?
I try use $config->get('config_theme') but it's not working.

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by xxvirusxx » Mon Oct 08, 2018 2:18 pm

Code from a theme maybe can help you.

Code: Select all

$data['mytemplate'] = $this->config->get('theme_default_directory');
And for css links he use

Code: Select all

<link rel="stylesheet" type="text/css" href="catalog/view/theme/{{  mytemplate }}/....
Or maybe is this... :)

Code: Select all

$this->config->get('theme_' . $this->config->get('config_theme'));
Last edited by xxvirusxx on Mon Oct 08, 2018 2:23 pm, edited 1 time in total.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by DesignCart » Mon Oct 08, 2018 2:21 pm

Wow it's work! :)
Thank You very much :)

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin
Who is online

Users browsing this forum: No registered users and 99 guests