Post by JNeuhoff » Thu Feb 21, 2019 6:42 pm

I tested it on an OpenCart 3.0.2.0 and 3.0.3.1, see attached screenshot for 3.0.2.0.

Attachments

Screenshot_2019-02-21_10-37-16.png

Screenshot_2019-02-21_10-37-16.png (69.9 KiB) Viewed 1460 times


Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Thu Feb 21, 2019 6:58 pm

Ah ha, we've got to the bottom of this!

What you're doing is changing the directory of the default theme.

What I'm talking about is creating a new theme that appears here:
Image

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Thu Feb 21, 2019 10:02 pm

Yes, you are right. I usually keep the default theme, and only change the theme folder. As long as you don't need any other settings beyond the image sizes, the usage of just another theme folder will do just fine. If you need additional or different settings, then yes, you'd have to add your web theme controller/view/language to take care of these additional settings.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by AndreyK » Mon Mar 11, 2019 7:39 am

Here is one solution.
I've created php script for creating new OpenCart 3.x.x themes. Just enter name of your theme, download to your computer and then unzip and upload to your Opencart 3.x.x installation.

http://kotsarweb.5gbfree.com/opencart3-new-theme

I would very appreciate community feedback.

Newbie

Posts

Joined
Wed Feb 13, 2019 3:05 pm

Post by IP_CAM » Mon Mar 11, 2019 8:31 am

Well done, a good approach to solve that problem. At least for
those, using OC v.3 ! :D

And to change a few things, one now only requires another Stylesheet,
matching the 'default' Version 3 OC way of doing things, to then have
different Designs as well, as I did in/for my Version I use, to so get a whole
range of different designs, like shown here:
http://www.openshop.li/shop/
I then usually only need the Custom Theme header + footer File, plus
possibly a good looking product.tpl (twig) File, and everything else is
'handled' by the default Theme OC Files.
(Not all Theme Styles have been 'perfected' yet, some misses might still exist!)

Such can only be achieved, if a Custom Theme is built according
OC v.x. Standards, and uses the same 'Style/Class-Variables', just with different
Values, to change visual Things. So, better don't try such with Pavo /Journal
and other highly customized Themes, since that won't work.

So, look around, to find (free! 8) ) Themes + Stylesheets for your Version.
And, at first, just replace the default theme stylesheet.css with the new
one, to so immediately find out, if a Stylesheet is technically capable to
do the Job, without much work. And if not, scrap it, and try the next! :D
But better don't steal my Styles, they won't do the Job in your Version. :P

Good Luck! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by AndreyK » Mon Mar 11, 2019 1:05 pm

Thank you IP_CAM !

Newbie

Posts

Joined
Wed Feb 13, 2019 3:05 pm

Post by paulfeakins » Mon Mar 11, 2019 7:25 pm

IP_CAM wrote:
Mon Mar 11, 2019 8:31 am
Such can only be achieved, if a Custom Theme is built according
OC v.x. Standards, and uses the same 'Style/Class-Variables', just with different
Values, to change visual Things. So, better don't try such with Pavo /Journal
and other highly customized Themes, since that won't work.
We're in the process of designing and building several OpenCart "CSS Only" Themes along the lines of the legendary CSS Zen Garden.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by tom327 » Tue Apr 02, 2019 3:37 am

My understanding from the instructions here is that you should copy ALL the default view/template files to your new custom theme.

But, I seem to remember when I created a custom theme with Opencart 2x that at first I did not copy all the default template files, and later would only copy to my custom theme only the specific template file I wanted to customize for my custom theme. My understanding was that Opencart would use the default theme files if it did not find a particular page template in my custom theme folder.

For example, if I wanted to customize only the product page template, then I would ONLY make a copy of the product page template and copy it to my custom theme folder.
Is that still the right way to work with Opencart 3.0 custom themes, or for some reason should you copy ALL the template page files to your custom theme folder from the beginning?

Active Member

Posts

Joined
Thu Feb 16, 2012 7:33 am

Post by paulfeakins » Tue Apr 02, 2019 3:48 am

tom327 wrote:
Tue Apr 02, 2019 3:37 am
Is that still the right way to work with Opencart 3.0 custom themes, or for some reason should you copy ALL the template page files to your custom theme folder from the beginning?
That's a good question - and I believe that is still the case, so you should delete any theme files that you do not modify.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by jsw » Sun Apr 05, 2020 4:13 am

paulfeakins wrote:
Fri Feb 15, 2019 8:22 pm
I've combined various information here to produce this downloadable theme template with instructions on how to give it your own name:
https://www.antropy.co.uk/blog/how-to-c ... t-3-theme/
Thank you Paul, that was very helpful!

I only made one mistake: Got excited and forgot to enable the new theme. :-[ :)

jsw
Newbie

Posts

Joined
Wed Jun 12, 2013 11:42 pm
Location - Canada

Post by IP_CAM » Sun Apr 05, 2020 5:37 am

Just a reminder, for those, not willing to play around with OC v.3.x TWIG, you
always have an Alternative, to create a Theme in the good old familiar way: :D
OpenCart 3 Template Switcher
https://www.opencart.com/index.php?rout ... n_id=31589
Image

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 48 guests