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

the default "skin1" template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-26-2003, 08:05 PM
 
chendry chendry is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 3
 

Default the default "skin1" template

Greetings, all

I've been working with the default "skin1" set of templates, and so far, it's been something of a frustrating experience. The templates are out of control --- nothing is indented properly, and so they are very hard to follow.

Have any of you given any thought to producing a "bare-bones" template that's better suited for customization? I think "skel1" can be improved by using proper indentation, and by fixing up some of the CSS. Do any of you have other ideas?

Do old templates typically break with new x-cart releases? I'm just looking for some insight before i get too tangled up it this.

- chad[/b][/u][/i]
Reply With Quote
  #2  
Old 02-27-2003, 03:22 AM
  shan's Avatar 
shan shan is offline
 

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

Default

Youll get the hang of the templates system, its realy quite good once you find you way around. How they look to you depends on what you are using to edit them.

The css has been updated since version 3.1.x and is now a bit better allthough some of the naming is a bit confusing and it could be done better i think. Again after working with it for a while youll see whats what
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 02-28-2003, 12:31 AM
 
chendry chendry is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 3
 

Default

Well, class names like TableTop aren't very descriptive, and class names like OrangeLine seem a bit contrary to the spirit of CSS.

As far as "How they look to you depends on what you are using to edit them." goes, i don't think any editor could make this make any sense:

Code:
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].price ne 0} {if $products[product].discount ne 0} <font class=MarketPrice>{$lng.lbl_market_price}: <s> {math equation="price/(1-(discount/100))" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted}{include file="currency.tpl" value=$unformatted} </s></font> {/if} <font class=TableCenterProductTitleOrange>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].discount ne 0}, save {$products[product].discount}%{/if}{if $config.General.use_vat eq "Y"}, including VAT {$products[product].vat}%{/if}

The lack of whitespace in that makes it hard to follow. It should look roughly like this:

Code:
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].price ne 0} {if $products[product].discount ne 0} <font class=MarketPrice>{$lng.lbl_market_price}: <s> {math equation="price/(1-(discount/100))" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted} {include file="currency.tpl" value=$unformatted} </s> </font> {/if} <font class=TableCenterProductTitleOrange> {$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price} </font> <font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price} </font> {if $products[product].discount ne 0}, save {$products[product].discount}%{/if} {if $config.General.use_vat eq "Y"}, including VAT {$products[product].vat}%{/if}

I may have made a mistake or two in there, but you get the idea. Also, in the above example, a couple Smarty {strip} tags would get rid of any excess whitespace that would screw up the browser.

But, I guess, most of that is cosmetic and not terribly important on my end. What is a show-stopper here, however, is that several templates are shared between the administration and the customer interfaces. It's more-or-less impossible with the existing set of templates to give the administration interface a separate look-and-feel from the customer interface. Maybe I am wrong here? Do you have any tips?

Would any of you benefit from templates that make it easy to nail down the LAF of your administration interface, and vary the customer LAF independently? I think this would be the best way because some customer LAFs make for lousy administration LAFs. Also, what about ISPs and whatnot who want to brand their administration LAF?

What do you all think about this?

- chad
Reply With Quote
  #4  
Old 02-28-2003, 02:44 AM
  shan's Avatar 
shan shan is offline
 

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

Default

I agree that it seems an odd thing to share single/home.tpl with the admin and the customer.

It would make much more sence for there to be an admin/home.tpl

you also have to take into account that developers are russina so some names dont use the best of descriptions
__________________
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 02-28-2003, 03:53 AM
 
chendry chendry is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 3
 

Default

Yeah, fair enough --- they know way more english than I know Russian so I better shut up

I've been studying all of the templates and trying to document them lately, and I don't think it would be too terribly difficult to completely rewrite them to suite my needs. But i'm worried about biting off more than I can chew as far maintaining them with new X-Cart releases.

I think that for now I'll just keep studying the templates and watch how they change between releases for a bit.

- chad
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 08:29 AM.

   

 
X-Cart forums © 2001-2020