X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help ! Dont understand how to change design (https://forum.x-cart.com/showthread.php?t=10569)

gregg 11-25-2004 04:42 AM

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 !!!

blue-dreamer 11-25-2004 04:52 AM

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.

gregg 11-25-2004 05:01 AM

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 ?

shan 11-25-2004 05:04 AM

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

Arther 11-30-2004 02:39 PM

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

balinor 11-30-2004 03:58 PM

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.

alliememaggies 12-02-2004 05:36 AM

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!

gregg 12-02-2004 09:37 AM

When I import to Dreamweaver I get the 2 codes : Smarty AND html ... what a mess !

balinor 12-02-2004 09:42 AM

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 ;)

adpboss 12-04-2004 10:34 AM

UltraEdit is a better tool than DW. It has markup and highlighting for smarty tags.


All times are GMT -8. The time now is 05:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.