| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing the look of "blocks".. im confused | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() 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:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Thank You!!
|
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
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. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Just create a new variable and you can use it in the template. Example: Code:
Then you can use your variable in the template like so: Code:
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:
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 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|