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

Simple Template System?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2005, 11:37 AM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default Simple Template System?

I have used OsCommerce in the past and loved how the Simple Template System could be installed and allow easy configurations for complex designs. Basically, you generate the template file, and when you want to include something such as the member login, you put a tag in the template for member login.

After reviewing the code for X-Cart, it seems to require quite a bit of heavy modifications to modify the default template.

Anyone have suggestions?
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #2  
Old 07-27-2005, 12:25 PM
 
balinor balinor is offline
 

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

Default

It is just a different system is all, and takes some getting used to.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-27-2005, 12:44 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

I have done quite a bit of skins for PHP software, it seems like this is about the most complicated template editing I have done. Heck, I have been able to rewrite an entire script that now validates xhtml/css with no probs at all.

Dunno, hope it catches on soon, I am starting to miss OsC a bit
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #4  
Old 07-27-2005, 01:05 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Smarty could be nice and simply or complicated - x-cart however uses advanced smarty tags that many advanced coders have to think hard about - definitely not simple. Once you get the hang of it though, it's extremely powerful.
Reply With Quote
  #5  
Old 07-27-2005, 02:01 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

How long does it usually take to grasp? I can usually read PHP files, but these smarty tags are a bit confusing. I was wondering for the longest time what ne and eq meant, finally figured it out though lol
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #6  
Old 07-27-2005, 07:27 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

Hi,

If you are good at logical and know the procedure hos this should be done then learning becomes easy...

For instance, if you know how the basic procedure would work for adding numbers, then it does't matter what development tool you use. The basic procedure should remain same for all languages. Simply, for adding 2 values, you need just 2 numbers. This is the basic procedure for this and using addtion operator you are going to add. But, the addition operator may vary from language to language. that' it.

First, try to be strong in basic things and try to apply in a problem and you will easily learn the programming language automatically. I use to learn in this way and succeeds.
Reply With Quote
  #7  
Old 07-27-2005, 07:54 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Learn the basic statements, and learn how to use a {section}, and you should be ok. You can always use the manual at http://smarty.php.net for reference.
Reply With Quote
  #8  
Old 07-27-2005, 08:19 PM
 
PersonalizedFitness PersonalizedFitness is offline
 

Advanced Member
  
Join Date: Oct 2004
Location: Omaha, Nebraska
Posts: 93
 

Default

I am a newb but when i first started, i would find an area that seemed to be what i wanted to edit and i would type TEST, save it and view it on the web pretty lame eh but it worked. The more i messed with it the easier it has become to modify the templates, as for CSS .. thats not too difficult
__________________
http://www.VitaManCafe.com
There is Nothing \"General\" about our Nutrition Center!
X-Cart version 3.5.1 | Operation System Linux

http://www.exercisewisdom.com
X-Cart Gold Version 4.0.1 | Operation System Linux
Reply With Quote
  #9  
Old 07-27-2005, 09:12 PM
 
Mr Bob Mr Bob is offline
 

Senior Member
  
Join Date: Jul 2005
Posts: 199
 

Default

Well I think the hardest part is that X-Cart doesn't come with a guide to their syntax. For example, product.sku is incorrect, and it is productid instead, however in the language file, it is sku, instead of productid- which I bet throws some people off.

I can correctly assume that a list of variables are not included anywhere? Let's say I want to display the memeber login, there isn't a page I can go to, and search for the member login display code, or to display a sub category list, etc.
__________________
Product: X-Cart Gold
Current version: 4.0.14

Additional Mods: X-Affiliate
Reply With Quote
  #10  
Old 07-27-2005, 09:34 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Code is actually product.productcode for SKU, product.productid is for the product id in the database.

You can use phpmyadmin and view the database tables to get codes.

If you want to edit the login/logout boxes, they are skin1/auth.tpl and skin1/authbox.tpl

There is also a webmaster mode in the admin, that will give you a list of templates that are loaded with each page so you can know where to edit what.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:00 PM.

   

 
X-Cart forums © 2001-2020