Page 1 of 1
Cannot change template v1.3.0
Posted: Tue Jul 21, 2009 8:56 am
by richard
Hi..
I did a clean install of v1.3.0.
1. Went to 'catalog\view\theme' and copied the whole 'default' directory
2. Rename the copy to 'any_name'
3. Went to the admin panel but cannot change the template since the drop-down for
'Template' does not show the newly created 'any_name' template
Went to the v1.2.9 installation and did the same process.
It works!
Please advise.

Re: Cannot change template v1.3.0
Posted: Fri Jul 24, 2009 4:12 am
by TBT
Ive had excactly the same issue, just "defualt" no other option even though i have 3 templates uploaded ?

Re: Cannot change template v1.3.0
Posted: Fri Jul 24, 2009 4:23 am
by Daniel
this has been anwsered before.
you can wait until my next release or you can put some images in image/templates with the same template name.
my next release should be this weekend. maybe sooner.
Re: Cannot change template v1.3.0
Posted: Fri Jul 24, 2009 7:31 pm
by JNeuhoff
Why don't we use something like this in the file
/admin/controller/setting/setting.php near line 187:
Code: Select all
$directories = glob(getcwd().'/../catalog/view/theme/*', GLOB_ONLYDIR);
Then it works fine, and if the image isn't there, it just uses the no_image.png by default. The image is only being used as a pre-defined screenshot in
/image/templates directory in Opencart's admin setting page and isn't really important.
Re: Cannot change template v1.3.0
Posted: Fri Jul 24, 2009 7:52 pm
by TBT
works for me i replaced $directories = glob(DIR_IMAGE . 'templates/*.png')
with (your) $directories = glob(getcwd().'/../catalog/view/theme/*', GLOB_ONLYDIR);
and no preview , but that doesnt matter
