This is my first post and question in the forum. My humble apologies if my post breaks some rules and structure here.
I want to use a logo as SVG, not as JPG or PNG. I noticed several threads and extensions for earlier versions of OC. However no solution for OC 3.x
Any tips how to overcome the issue?
For the record, I'm using Journal 3.x as a theme yet I'm ready to give it off in case it will be an obstacle to SVG logo.
Thanks!
You should probably avoid Journal even if it does support SVG

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
no solution for what?However no solution for OC 3.x
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Check this topic: viewtopic.php?t=128253kk651 wrote: ↑Wed Sep 16, 2020 12:25 amHello everyone,
This is my first post and question in the forum. My humble apologies if my post breaks some rules and structure here.
I want to use a logo as SVG, not as JPG or PNG. I noticed several threads and extensions for earlier versions of OC. However no solution for OC 3.x
Any tips how to overcome the issue?
For the record, I'm using Journal 3.x as a theme yet I'm ready to give it off in case it will be an obstacle to SVG logo.
Thanks!
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
I don't know about Journal, I strongly suggest to stay away from this extra framework, as it doesn't comply with OpenCart standards and is hopelessly bloated.kk651 wrote: ↑Wed Sep 16, 2020 12:25 amI want to use a logo as SVG, not as JPG or PNG. I noticed several threads and extensions for earlier versions of OC. However no solution for OC 3.x
Any tips how to overcome the issue?
For the record, I'm using Journal 3.x as a theme yet I'm ready to give it off in case it will be an obstacle to SVG logo.
Thanks!
In order to support SVG in OpenCart 3.0.x, you'd have to modify the file 'admin/controller/common/filemanager.php'
Replace
Code: Select all
$files = glob($directory . '/' . $filter_name . '*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}', GLOB_BRACE);
Code: Select all
$files = glob($directory . '/' . $filter_name . '*.{jpg,jpeg,png,gif,svg,JPG,JPEG,PNG,GIF,SVG}', GLOB_BRACE);
Code: Select all
// Allowed file extension types
$allowed = array(
'jpg',
'jpeg',
'gif',
'png'
);
Code: Select all
// Allowed file extension types
$allowed = array(
'jpg',
'jpeg',
'gif',
'png',
'svg'
);
Code: Select all
// Allowed file mime types
$allowed = array(
'image/jpeg',
'image/pjpeg',
'image/png',
'image/x-png',
'image/gif'
);
Code: Select all
// Allowed file mime types
$allowed = array(
'image/jpeg',
'image/pjpeg',
'image/png',
'image/x-png',
'image/gif',
'image/svg+xm'
);
Once done, you should able to upload a SVG file via the System > Settings > edit > Image > Store Logo
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus
viewtopic.php?f=190&t=186311&p=799547#p799547
My Github OC Site: https://github.com/IP-CAM
5'000 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.
@letxobnav apologies for short pointout. No solution specifically for OC 3.x to use SVG file as a logo.
All in all, do you suggest using SVG as a logo in an OC page?
Users browsing this forum: No registered users and 6 guests