Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Help ! Dont understand how to change design

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-25-2004, 04:42 AM
 
gregg gregg is offline
 

Newbie
  
Join Date: Nov 2004
Location: Switzerland
Posts: 3
 

Default Help ! Dont understand how to change design

Oups ... dont understant nothing !

When I try to get the html code, I get insted a bizarre code, named "Smarty". How do I manage it ? with Dreamweaver ? Is there anytghing special to manage this code ?

Help , and thanks !!!
__________________
<Gregg>
[X-Cart 4.0]
Reply With Quote
  #2  
Old 11-25-2004, 04:52 AM
 
blue-dreamer blue-dreamer is offline
 

eXpert
  
Join Date: Dec 2002
Location: Northampton UK
Posts: 213
 

Default

Hi gregg

X-cart pages are made up of lots of small chunks of html which you will find under "Edit templates" in X-cart admin.

For instance, the template file head.tpl controls what appears at the top of the page, and skin1.css is the css file for the whole site.

Personally I edit code directly in the template editor, I believe you can edit templates in Dreamweaver but make sure it doesn't interfere with the code or you might stop your store working. Using a text editor is usually the best bet.
Reply With Quote
  #3  
Old 11-25-2004, 05:01 AM
 
gregg gregg is offline
 

Newbie
  
Join Date: Nov 2004
Location: Switzerland
Posts: 3
 

Default

Thanks !

So you must choose in the .tpl file the html and let the Smarty code as it is ?
It is very complicated don't you think ?

And you have to change EVERY page of the site when you want to implement a new design ?
__________________
<Gregg>
[X-Cart 4.0]
Reply With Quote
  #4  
Old 11-25-2004, 05:04 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Greg,

you can see what smarty is all about at http://smarty.php.net

also check the forum faq , xcart faq and xcart manual for lots of tips on how to get started
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 11-30-2004, 02:39 PM
 
Arther Arther is offline
 

Newbie
  
Join Date: Nov 2004
Posts: 6
 

Default Code? What Code!?

Listen I would like the ability to edit these X-cart things but I am NOT a code person.. I am a Macromedia see what you get and redesign it person.

So is this possible with X-Cart.. I mean is there something out there that will let us idiots edit the way it looks?

Jay
__________________
X-Cart Gold 4.0
Reply With Quote
  #6  
Old 11-30-2004, 03:58 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Sorry Jay, you really need to know how HTML works in order to edit the templates. Dreamweaver and other WYSIWYG editors don't understand Smarty.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-02-2004, 05:36 AM
 
alliememaggies alliememaggies is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 4
 

Default

You can also copy the code from the .tpl file to a page in dreamweaver and edit the way you want, compare the smarty codes (see if they haven't changed) and copy/paste into the .tpl file

You see the result in Dreamweaver (quite) and the coding is still ok.

good luck!
__________________
Trying to get a good shop!
Reply With Quote
  #8  
Old 12-02-2004, 09:37 AM
 
gregg gregg is offline
 

Newbie
  
Join Date: Nov 2004
Location: Switzerland
Posts: 3
 

Default

When I import to Dreamweaver I get the 2 codes : Smarty AND html ... what a mess !
__________________
<Gregg>
[X-Cart 4.0]
Reply With Quote
  #9  
Old 12-02-2004, 09:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yea, if you are going to edit the templates in Dreamweaver, you really need to at least understand the concept of Smarty so that you don't break the {if}{else} type conditions as well as the rest of the Smarty tags. It isn't as tough as you might think...after a while it'll be second nature to you
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 12-04-2004, 10:34 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

UltraEdit is a better tool than DW. It has markup and highlighting for smarty tags.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:30 AM.

   

 
X-Cart forums © 2001-2020