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)
-   -   Changing the look of "blocks".. im confused (https://forum.x-cart.com/showthread.php?t=8768)

EnriqueHavoc 08-04-2004 01:05 AM

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

shan 08-04-2004 02:24 AM

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 }

EnriqueHavoc 08-04-2004 12:51 PM

Thank You!!

CC 08-12-2004 03:59 AM

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.

pmstudios 08-12-2004 05:27 AM

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}"

CC 08-12-2004 01:16 PM

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?


All times are GMT -8. The time now is 07:32 AM.

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