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)
-   -   Single Column side boxes (https://forum.x-cart.com/showthread.php?t=31451)

Joedee 05-27-2007 05:03 AM

Single Column side boxes
 
I am trying to get all of my sideboxes to be in one column on the left of my main cart, but I can't seem to figure it out. I saw in another post that the position of the sideboxes is controlled in the customer/home.tpl file but I am not seeing anything that jumps out at me in this file.

Thanks in Advance for any suggestions :-)

carpeperdiem 05-27-2007 05:17 AM

Re: Single Column side boxes
 
Joedee,

If you look at a stock home.tpl, you'll usually see a 3 column setup -- that is, there are (3) <td> columns -- so if you want to lose the 3rd column, "simply" remove the rightmost <td> and move it's contents to the leftmost <td>

For example, find this code in 4.1.3's home.tpl:

Code:

<td class="VertMenuRightColumn">
{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' && $sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}
<br />
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
<br />
{/if}
{include file="customer/menu_cart.tpl" }
<br />
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
{include file="news.tpl" }
{if $active_modules.XAffiliate ne ""}
<br />
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
<br />
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<br />
{include file="poweredby.tpl" }
<br />
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />
</td>


This is the entire "right column" of your home.tpl. If you want to insert these items on the left column and eliminate the right column, take everything between the <td> and the </td> and paste it after:

Code:

{include file="help.tpl" }
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />


And of course, delete the right column <td> and </td>

I hope you have some basic xhtml skills? home.tpl is a relatively simple layout -- it basically is a shell for the entire site and it mostly comprises "includes" to other templates and modules. home.tpl is a great place to start visualizing where things live since there's not much "content" - but mostly links to other templates that have the content.

This can be a nest of insanity, but home.tpl is usually your starting place.

When in doubt, use WEBMASTER MODE to help you sort out what lives where.

Good luck!

Jeremy

carpeperdiem 05-27-2007 05:19 AM

Re: Single Column side boxes
 
PS -- we are talking about /skin1/customer/home.tpl -- all your templates are in /skin1 directory. We rarely speak of skin1/ since it is assumed that you will always be inside skin1 for template editing. So when someone says go to /customer/home.tpl, they mean, /skin1/customer/home.tpl - got it?

Joedee 05-27-2007 05:40 AM

Re: Single Column side boxes
 
Thanks for your super quick response, I will let you know how it goes

Joedee 05-27-2007 05:57 AM

Re: Single Column side boxes
 
Worked like a charm, thanks so much


All times are GMT -8. The time now is 05:03 AM.

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