View Single Post
  #1  
Old 11-30-2004, 08:48 AM
 
e1front e1front is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 179
 

Default A New skin Upload Tool - Could it be a Standard X-tool

I was thinking how to make the template/skin-design and display process easier and more standard for x-cart

Here are some thoughts inspired from other software ...

This will help x-cart to go further and will create many sites selling x-cart templates

This is just a rough draft,

1- I found that the main files changed in any new skin / template are
Quote:
- Rectangle_top.tpl
- Rectangle_botton.tpl
- Customer/home.tpl
- Head.tpl
- Dialog.tpl
- Skin1.css
- <IMAGES FOLDER>

2- to enable site templates/skins, we need to change the structure of x-cart a little
we need to have a structure like this

Quote:

x-cart
-| skin1
-----| templates
-----------| skin1
-----------| skin2
-----------| skin3
---------------| images
---------------| Rectangle_top.tpl
---------------| Rectangle_botton.tpl
---------------| Customer/home.tpl
---------------| Head.tpl
---------------| Dialog.tpl
---------------| Skin3.css


3- now every template folder should the have the above files in step1
and an xml file defining the template info like

Quote:
<name>template red</name>
<cssFile>Skin3.css</cssFile>
<imageFolder>images</imageFolder>

Б─╕..

4- now when a customer buys a new skin, he gets a folder with the previous files in compressed formats
he uploaded it to his pc

5- then in the admin site, we can have a tool to upload new skins, the system browse for the folder Б─°zip formatБ─² and create a new folder under Б─°TemplatesБ─² folder in x-cart

5- then admin have the choice to set default template from the available templates to be displayed on site

what do you guys think[img][/img][img][/img]
Reply With Quote