Page 1 of 1

Creating new theme

Posted: Wed Aug 02, 2017 6:03 am
by TDSTouring
Hi guys!
I'm trying to copy default theme in OC 3.0.2.0 for making my own using a custom tutorial (link not available anymore!).
Unfortunately, in the end, I cant enable new theme in Extensinos->Extensions->Themes.
It's selected to "Enable" inside them editing, but in the list - "Disabled".
Please, told me - how to clone/create themes in OC3.
Thanks.

PS. Sorry, if thread is wrong. First post xD

Re: Creating new theme

Posted: Thu Aug 03, 2017 2:21 am
by sputnik-1
Hi all,

I'm trying to create a new theme as well following this tutorial here:

https://code.tutsplus.com/tutorials/cre ... -cms-21865

The tutorial was written for OC 1.5.x but I did get this working OK on OC 2.2.0.0

I'm trying get this working on OC 3.0.1.2 and I cannot see "mycustomtheme" in the OC admin interface anywhere.

Code: Select all

laptop theme # tree -L 3 mycustomtheme/
mycustomtheme/
├── image
├── stylesheet
└── template
    └── common
        ├── home.twig
        ├── home.twig.orig
        └── tmp-backups
How do I locate mycustomtheme and tell OC 3.0.1.2 to use that instead of the default theme please? ???

TIA

Keith

UPDATE:
To change themes on Opencart 3.0.1.2 you can do the follow:

Login to opencart as admin user.

Go to Extensions -> Extensions

Extension List
Choose the extension type

Click on the drop selection list next to 'Filter' and choose:

Themes(1)

Under Theme Name

- Your Store (Status Enabled) click the blue 'edit' button

Under General:

Theme Directory: select the 'mycustomtheme' from the drop down list.

Status: Enabled

Click on the blue 'save' button at the top RHS of the page.

This should output the message:

"Success: You have modified the default store theme!"

-------------------------------------------------------
When you have done that, if you reload the page on the front end it should now be working with the new theme. ;)

Re: Creating new theme

Posted: Tue Aug 08, 2017 6:34 pm
by TDSTouring
When you have done that, if you reload the page on the front end it should now be working with the new theme. ;)
Well, it works for me.
Thank you very much!

Re: Creating new theme

Posted: Fri Aug 11, 2017 4:10 am
by tomroguk
This worked for me. Thanks for posting (Version 3.0.20)

Re: Creating new theme

Posted: Sun Aug 13, 2017 11:10 pm
by tomroguk
tomroguk wrote:
Fri Aug 11, 2017 4:10 am
This worked for me. Thanks for posting (Version 3.0.20)
Experimenting a littl efurther, my custom theme isn't available in the new theme editor. Any ideas on that?

Re: Creating new theme

Posted: Fri Aug 18, 2017 5:18 am
by linetrace
In porting my own theme to OC 3.0.2.0 from OC 2.3.0.2, I found that the settings needed to be prefixed with 'theme_' (so change to 'theme_default_status' to 'theme_mycustomtheme_status' instead of just 'mycustomtheme_status' (as worked with 2.3.0.2 and earlier). There is code in various parts of OpenCart 3.0.x that now looks for those 'theme_' prefixed settings when making decisions about showing the status (enabled/disabled) and probably showing it in the theme editor.

Re: Creating new theme

Posted: Mon Mar 05, 2018 8:20 pm
by Satrughna
I followed the above steps and created a theme and it is working properly, but when I go to Design > Theme Editor section it shows me the default template codes. Can someone guide me where I am doing wrong, though I am new to Opencart.

Re: Creating new theme

Posted: Fri Apr 30, 2021 5:05 pm
by shubhamseth
Hi everyone,

I have created a new theme from scratch without any coding by using the software TemplateToaster. Here is the link for tutorial :
https://blog.templatetoaster.com/how-to ... art-theme/

Hope this tutorial helps you in making your first OpenCart Theme.

Here is the download link for TemplateToaster https://templatetoaster.com/downloads/T ... er_web.exe

Moderator notes:
1. this is for OpenCart 2.0.x only
2. Program is a Windows Executable (.exe) file to install locale - security cannot be verified, use it on your own risk

Re: Creating new theme

Posted: Fri Apr 30, 2021 7:20 pm
by straightlight
shubhamseth wrote:
Fri Apr 30, 2021 5:05 pm
Hi everyone,

I have created a new theme from scratch without any coding by using the software TemplateToaster. Here is the link for tutorial :
https://blog.templatetoaster.com/how-to ... art-theme/

Hope this tutorial helps you in making your first OpenCart Theme.

Here is the download link for TemplateToaster https://templatetoaster.com/downloads/T ... er_web.exe

Moderator notes:
1. this is for OpenCart 2.0.x only
2. Program is a Windows Executable (.exe) file to install locale - security cannot be verified, use it on your own risk
Who approved this? ...