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

Changing the look of "blocks".. im confused

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-04-2004, 01:05 AM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default Changing the look of "blocks".. im confused

How do you edit the html of an ENTIRE block such as menu_cart.tpl? Im looking to make structural changes through html and not just change the colors through CSS. As far as I can tell the outer table data is kept in {capture name=menu} somehow but i have no understanding how that works... (without that code the block expands to fill the whole page and the functionality breaks)

Editing menu_cart.tpl only seems to change the structure inside the cell where the cart data goes.

i cant for the life of me figure out how to access the top table row(where it says "Your Cart"). Where is the actual outer table html kept or how can I modify it? Is this even possible? :P

I am using X-Cart 4.0
Reply With Quote
  #2  
Old 08-04-2004, 02:24 AM
  shan's Avatar 
shan shan is offline
 

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

Default

the menus and the center box's have a template wrapped round them

the menus ues - menu.tpl
the center box's use - dialog.tpl

edit those and your good to go

if you want to change just one instance then make a new wrapper and edit the code that calls it at the bottom of the item

eg

Code:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }
__________________
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 08-04-2004, 12:51 PM
  EnriqueHavoc's Avatar 
EnriqueHavoc EnriqueHavoc is offline
 

eXpert
  
Join Date: Jul 2004
Posts: 232
 

Default

Thank You!!
Reply With Quote
  #4  
Old 08-12-2004, 03:59 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Quote:
Originally Posted by shan
the menus and the center box's have a template wrapped round them

the menus ues - menu.tpl
the center box's use - dialog.tpl

edit those and your good to go

if you want to change just one instance then make a new wrapper and edit the code that calls it at the bottom of the item

eg

Code:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }

I see what ur saying, but I dont quite follow, is there any chance you could explain a little more please?
How can I change the title of the boxes to an image instead?

I want to remove the backround orange for instance and the text: "Categories" with the dingbat, and just replace this with an image of a tab instead.
How would I go about this?

Thanks.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #5  
Old 08-12-2004, 05:27 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Quote:
Originally Posted by CC
I want to remove the backround orange for instance and the text: "Categories" with the dingbat, and just replace this with an image of a tab instead.
How would I go about this?

Thanks.

Just create a new variable and you can use it in the template.

Example:
Code:
{include file="menu.tpl" image="mytab.gif"}

Then you can use your variable in the template like so:
Code:
<TABLE cellpadding="0" cellspacing="0" border="0"> <TR> <TD>[img]{$ImagesDir}/{$image}[/img]</TD> </TR> </TABLE>

If you use a fixed width and height for all of your tabs you can do it like the example above. But if they will vary in size, you should use something like this:
Code:
{include file="menu.tpl" image="mytab.gif" width="120" height="35"}

And use the width/height settings in the template like width="{$width}" and height="{$height}"
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote
  #6  
Old 08-12-2004, 01:16 PM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default

Argh, ok I see what your saying.

So where would the variable be stored?
In the template itself? Or is there a location for all veriables in X-Cart?
__________________
XC 4.2 inc (unofficial) patch release.
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 05:56 AM.

   

 
X-Cart forums © 2001-2020