Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Also, what is the store url?
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
So I looked at /catalog/controller/common/header.php and I added:
Code: Select all
echo 'test123';
var_dump($this->config->get('config_icon'));
var_dump($this->config->get('config_logo'));exit;
Code: Select all
test123string(34) "data/fofdnet/logo/scribble.png" string(0) ""
- Any URLs you could provide?
If using a custom theme even when trying with the original Opencart logo, switch back to the default theme to see if these results can be replicated.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OC 3.0.2 and no url at the moment.straightlight wrote: ↑Thu Nov 16, 2017 11:04 pm- OC version?
- Any URLs you could provide?
If using a custom theme even when trying with the original Opencart logo, switch back to the default theme to see if these results can be replicated.
I use the default opencart theme so thats really strange when I replace config_logo with config_icon it shows the favicon as logo so that all works. The config_logo just returns null, but its set in db
Find:
Code: Select all
if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
$data['logo'] = $server . 'image/' . $this->config->get('config_logo');
} else {
$data['logo'] = '';
}
Code: Select all
if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
$data['icon'] = $server . 'image/' . $this->config->get('config_icon');
} else {
$data['icon'] = '';
}
Code: Select all
{% if icon %}
<img src="{{ icon }}">
{% endif %}
This should rectify the problem.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
$data['logo'] = $server . 'image/' . $this->config->get('config_logo');
} else {
$data['logo'] = '';
}
Code: Select all
if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
$data['logo'] = $server . 'image/' . $this->config->get('config_icon');
} else {
$data['logo'] = '';
}
On your own.The above is just a ugly fix but not the main fix of the main problem.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 6 guests