Page 1 of 1
Here's a question
Posted: Tue Feb 24, 2009 9:31 am
by Monikaelise
I am not a programmer. I have a basic knowledge of HTML and can use Dreamweaver to make websites. I want to create a new template for my store. Should I even attempt it? I am looking around at all the files within files within files and getting very scared. Please be honest, I don't want to attempt this unless there is an easy way to do it. Thanks all.
Re: Here's a question
Posted: Tue Feb 24, 2009 11:50 am
by nde
I would say it's possible with basic knowledge of HTML. So let's say if you can code a website by hand, using any text editor, it's very easy. But if you rely on Dreamweaver to make a website, I'd totally abstain from it and learn HTML first.
The layout for the frontend is pieced together using templates.
Look into this folder: /opencart/cart/template/default
There you'll find various template files, names of them are self explanatory. The cart script grabs these files and pieces them together (puts the code parts to the according places of the page).
Btw, HTML is not a programming language. It's a language to mark up documents, which are usually styled with CSS.
Re: Here's a question
Posted: Tue Feb 24, 2009 9:39 pm
by Blueforce
Hi nde,
I don't think thats the right place for the templates...
In 1.x version (which I assume you are talking about sice this is the 1.x forum) the templates are in:
/catalog/view/template/
And in 0.x you find them in:
/catalog/template/default/
This is just my thought... but to not confuse people please post version 1.x and 0.x in there right forum. Because there are one forum for each one. - Just my 2 cents!
Regards,
Leffe
Re: Here's a question
Posted: Wed Feb 25, 2009 3:28 am
by nde
Hi Leffe,
that was just a little mistake of mine. You're right, template files for 1.x are in:
/opencart/catalog/view/template
Re: Here's a question
Posted: Wed Feb 25, 2009 3:38 am
by tifosi
The key to it really is from similar experience to code the individual pages into mockups
1. decide on the wireframe structure that flows through all the pages
2. create mockups with 1 of the home/cart etc pages withy valid XHTML (strict if poss)
3. tidy up the code into relevent sections with div wrappers
4. split the whole into the relevent view templates
5. tidy up the looping sections where OC will fill in variables
OC should do the rest. Wordpress is similar - in a different structure
S