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

How does one edit the html of .tpl's WITHOUT breaking....

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-11-2005, 05:11 PM
  AgileMolecule's Avatar 
AgileMolecule AgileMolecule is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default How does one edit the html of .tpl's WITHOUT breaking....

Yes I know this is surely an incredibly stupid question- sorry in advance. And I have studied this forum and others to get the initial grasp down with Smarty but STILL need assistance.

If the template is so "separate" from the logic and is designed to be safe from being broken by the designer why do I see so much logic-based code throughout the .tpl files that I can obviously break easily and quite unintentionally.

In other words I guess I am a bit of a wimp to go about messing around with the .tpl file!!!! But unfortunately I have a very complicated design that I must get working WITH these puppies and was a little suprised to see just how difficult this is going to be.

Am I overly concerned here?

What first step do you take when editing the design of, for example, the header.tpl?

Thanks so much in advance!!!
__________________
\"We have only scratched the surface of Mars\"...

Jim Garvin

X-Cart version 4.0.13
Reply With Quote
  #2  
Old 05-12-2005, 02:29 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

First step when making changes? Make a backup.
Second step when making changes? Breathe deeply and go for it. Yes there are lots of smarty tags in there but after a while it really is quite easy. If you have a complex desigh maybe you should get a X-cart designer to implement it for you? It might save a lot of headaches.
__________________
Version 3.4.8
Reply With Quote
  #3  
Old 05-12-2005, 04:25 AM
  AgileMolecule's Avatar 
AgileMolecule AgileMolecule is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default

Thanks Magnum-

I'm glad you mentioned the backup issue as I assumed this is going to the norm working with .tpl's.

Your advice of working with an Xcart designer is appreciated as well- BUT, do you have one basic tip that you can offer me as to how you start your process before I go this route.

After creating a backup and before I start the design work on a particluar .tpl file should I strip the smarty code out of the .html and then replace it after the page design is complete?
__________________
\"We have only scratched the surface of Mars\"...

Jim Garvin

X-Cart version 4.0.13
Reply With Quote
  #4  
Old 05-12-2005, 04:29 AM
 
balinor balinor is offline
 

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

Default

No, I wouldn't strip the Smarty...you need to learn to work with it or else you are going to cause all sorts of problems If you like Dreamweaver, I would suggest reading these threads:

http://forum.x-cart.com/viewtopic.php?t=17274

http://forum.x-cart.com/viewtopic.php?t=74

Honestly, once you get comfortable with the {if} statements, you will be fine. There is no substitute for just diving in and learning it
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-12-2005, 06:19 AM
  AgileMolecule's Avatar 
AgileMolecule AgileMolecule is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default

Thanks Balinor- I shall get wet then....
__________________
\"We have only scratched the surface of Mars\"...

Jim Garvin

X-Cart version 4.0.13
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 11:42 AM.

   

 
X-Cart forums © 2001-2020