Post by Housy » Tue Jul 28, 2009 12:41 am

Hello :)

First of all i have to say, that oscommerce sux =D, cause they don't use templating, which is awful for designers. And i gotta say, that Open cart has a lot of great features, i'm really impressed, that i have found such a great opensource online shop. Thank you ;D

Ok, to the problem now. Actually i'm trying to modify the default theme, so tpl and css files. When i add some image to /theme/default/image and try to show this picture with css, it doesn't work. It doesn't show any picture or anything, like it would ignore the code inside css file.

For example (Modifying header.tpl for example):

CSS code:

Code: Select all

#header { 

    width: 100%; 
    height: 214px; 
    background-image: url("../image/top_back.png");
    background-repeat: repeat-x; 

}
header.tpl code

Code: Select all

<div id="header"> Just test</div>
And finally the layout.tpl file

Code: Select all

...
<body>
<?php echo $header; ?>
</body>
</html>
What's wrong, why it doesn't work as it should?

Thank you,

Housy

Newbie

Posts

Joined
Tue Jul 28, 2009 12:30 am

Post by phpuk » Tue Jul 28, 2009 2:53 am

post your url so we can look into it for you.

Global Moderator

Posts

Joined
Wed Mar 25, 2009 10:57 am

Post by Housy » Tue Jul 28, 2009 4:47 am

I reinstalled everything and it works now. But i have still one problem. If i create new theme, that means i create a new map called test for example, and i copy all the files from default theme in the test map. Then when i go under admin->configuration->settings and i try to set theme to test, i cant, cause only default theme is there.

Why is that happening?

Thank you,

Housy

Newbie

Posts

Joined
Tue Jul 28, 2009 12:30 am

Post by gaidin » Thu Jul 30, 2009 4:28 pm

Housy wrote:I reinstalled everything and it works now. But i have still one problem. If i create new theme, that means i create a new map called test for example, and i copy all the files from default theme in the test map. Then when i go under admin->configuration->settings and i try to set theme to test, i cant, cause only default theme is there.

Why is that happening?

Thank you,

Housy
Need to place a preview image of your new template in the image/template folder. Preview image name must be the same as the folder containing the new template.

example: If your new template/theme is named test and stored in a folder \catalog\view\theme\test then place a preview image named test (eg. test.png or test.jpg) in image/template

and it will show up in the template list in the admin panel

Newbie

Posts

Joined
Sun Jul 26, 2009 5:44 pm
Who is online

Users browsing this forum: No registered users and 4 guests