Page 1 of 2

[MODULE] - Theme Switcher

Posted: Thu Feb 11, 2010 4:00 am
by Qphoria
I created a Theme Changer sidebox module for OpenCart. It allows you to showcase your themes and change them with a simple select box.

DEMO

It should work with 1.3.2 and later versions. Haven't tried earlier versions.

Re: [MODULE] - Theme Switcher

Posted: Sat Feb 20, 2010 12:46 am
by DannyMacD
hi Q,

great Mod! :)

i wanted to ask is there anyway of having this placed in the header.tpl and not in a side module?

many thanks

Re: [MODULE] - Theme Switcher

Posted: Tue Apr 27, 2010 4:56 pm
by espc
is it possible to replace this switcher with the language switcher?
so when it changes languages, change also the language??

Re: [MODULE] - Theme Switcher

Posted: Sun May 16, 2010 9:00 am
by silanli_53
It works with 1.4.7... ??? ???

Re: [MODULE] - Theme Switcher

Posted: Sun Jun 20, 2010 3:58 am
by DannyMacD
Hi Q,

is there anyway this can look like the image below?

im on 1.4.8b

many thanks

Re: [MODULE] - Theme Switcher

Posted: Sun Jul 11, 2010 6:48 am
by sirskull
not working in version 1.4.8b
:(

when I change the theme in the dropdown menu it does not change, always shows the default theme

Re: [MODULE] - Theme Switcher

Posted: Sun Jul 11, 2010 10:35 pm
by DannyMacD
DannyMacD wrote:Hi Q,

is there anyway this can look like the image below?

im on 1.4.8b

many thanks

any thoughts on this one Q?

thanks

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 9:01 am
by Maansy
thanks Q for the [MODULE] - Theme Switcher
i downloaded the one for 1.48B from here
its working fine, i just noticed when i go to the admin page there is an error:

Warning: Invalid argument supplied for foreach() in /home/xxxxxx/htdocs/store/system/engine/controller.php on line 64

this is line 64:

Code: Select all

foreach ($directories as $directory) {
 
is there a fix for this?
thank you

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 8:30 pm
by Maansy
is there a fix to the error i am still getting?

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 9:54 pm
by Qphoria
What?! you mean nobody stayed up all night to fix it between 7pm and 6am? How dare they!
Try this.. change

Code: Select all

if (isset($this->request->get['theme']) && $this->request->get['theme'] || isset($this->session->data['theme'])) {
to

Code: Select all

if (strpos(DIR_APPLICATION, 'catalog') !== false && ((isset($this->request->get['theme']) && $this->request->get['theme']) || isset($this->session->data['theme']))) {

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 10:48 pm
by Maansy
changed it but still that error.
i get this error only with firefox, not IE. wierd :crazy:

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 11:00 pm
by Qphoria
Funnier is that I don't get the error at all on FF or IE even before the fix. But the fix above should fix it.

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 11:04 pm
by Maansy
Qphoria wrote:Funnier is that I don't get the error at all on FF or IE even before the fix. But the fix above should fix it.
can you verify if there is error or not here using firefox
thanks
now the error is gone again :crazy: why does it come and go? the only thing i dod is i close firefox and open a fresh window and tried again. hmmmmmm

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 11:43 pm
by Maansy
now its happening again with IE8, its goes and comes with every log in or log out

Re: [MODULE] - Theme Switcher

Posted: Wed Jul 21, 2010 11:58 pm
by Qphoria
I had a parenthesis in the wrong spot. Try the code above again

Re: [MODULE] - Theme Switcher

Posted: Thu Jul 22, 2010 12:22 am
by Maansy
Qphoria wrote:I had a parenthesis in the wrong spot. Try the code above again
the error is gone now, we will wait and see.
hopefully it stays error-free :)
thanks alot Q

Re: [MODULE] - Theme Switcher

Posted: Wed Oct 06, 2010 8:25 pm
by ThePath
I installed v1.4.8.1 on OC v1.4.9.1

It didnt work for me. I have two themes: Default and theme2. When I choose theme2 it changes a few of the graphics (not all of them), and screws up the CSS etc.

So the url ends with: index.php?route=common/home&theme=theme2 then I click on HOME so the url returns to normal but the site still appears to be all f'd up.

If I then click on Default again it returns to the default theme and displays normally?

Has anyone else encountered similar problems? If so how did they fix it?

Cheers

Re: [MODULE] - Theme Switcher

Posted: Wed Oct 06, 2010 11:56 pm
by Qphoria
Just tested on 1.4.9 (here)
Seems to work ok

Re: [MODULE] - Theme Switcher

Posted: Thu Oct 07, 2010 12:12 am
by ThePath
Mmmmmm perhaps Im missing something as mine doesnt do that fancy effect when you change back to default. I shall double check everything is in its place, perhaps I missed something.

UPDATE: Well I dont know what went missing but I copy pasted the mod and then uploaded all the files and hey presto it works. Im sure it was working before but then went funny. Anyway all is well with the world...

Re: [MODULE] - Theme Switcher

Posted: Thu Jan 27, 2011 2:55 am
by bajaber
I have been searching for this using the wrong keywords. "Theme changer". Thanks