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)
-   -   3 column template into a two column (https://forum.x-cart.com/showthread.php?t=28070)

ezi designs 01-16-2007 07:52 AM

3 column template into a two column
 
Probaly not an easy solution but how difficult is it to make a 3 column template into a two column template.

Is it just a matter of putting the contents of the right vert columns into the left and chanding any css or it it more than that ?


Thanks

Richard

balinor 01-16-2007 08:13 AM

Re: 3 column template into a two column
 
Yep, just move the includes from the right hand table cell into the left, and remove the third column. customer/home.tpl contains all you need.

ezi designs 01-16-2007 09:48 AM

Re: 3 column template into a two column
 
Thank you Ryan

ezi designs 01-16-2007 10:06 AM

Re: 3 column template into a two column
 
Hi

I think i spoke to soon. changed it over 3 times and got an error on the screen so somthing went wrong.

I have posted the tpl file for you to take a look in its original format. Basically what i want is the righthand column to be on the left.

Thank you again


{* $Id: home.tpl,v 1.88.2.4 2006/10/13 10:41:21 svowl Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html>
<head>
<title>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</title>
{include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />
</head>
{if #ShowHorCategories# eq "Y" && $main ne "fast_lane_checkout"}
{if $body_onload eq ""}
{assign var="body_onload" value=" hcCheckCategories(); window.onresize = hcCheckCategories;"}
{else}
{assign var="body_onload" value="`$body_onload` hcCheckCategories(); window.onresize = hcCheckCategories;"}
{/if}
{/if}
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>
{include file="rectangle_top.tpl" }
{include file="customer/head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">
{assign var="menu_position" value="left"}
{if $categories ne "" and $active_modules.Fancy_Categories ne ""}
{include file="customer/categories.tpl" }
{/if}
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{include file="customer/main/live_help.tpl"}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{if $active_modules.Survey && $menu_surveys}
{foreach from=$menu_surveys item=menu_survey}
{include file="modules/Survey/menu_survey.tpl"}
<br />
{/foreach}
{/if}
{include file="help.tpl" }
{include file="customer/main/menu_end.tpl"}
<br />
<img src="{$ImagesDir}/spacer.gif" width="161" height="1" alt="" />
</td>
<td valign="top" class="MainArea">
<!-- central space -->
{if $gcheckout_enabled and $main ne "cart" and $main ne "checkout" and $main ne "anonymous_checkout" and $main ne "order_message"}
<div align="right">{include file="modules/Google_Checkout/gcheckout_button.tpl"}</div>
{/if}
{include file="dialog_message.tpl"}
{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{include file="customer/home_main.tpl"}
<!-- /central space -->
&nbsp;
</td>
{assign var="menu_position" value="right"}
<td class="VertMenuRightColumn">
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}
{if $active_modules.Users_online ne ""}
{include file="modules/Users_online/menu_users_online.tpl" }
{/if}
{include file="customer/menu_cart.tpl" }
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
{include file="news.tpl" }
{if $active_modules.XAffiliate ne ""}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
{include file="customer/main/menu_end.tpl"}
<br />
<img src="{$ImagesDir}/spacer.gif" width="161" height="1" alt="" />
</td>
</tr>
</table>
{include file="rectangle_bottom.tpl" }
</body>
</html>
{/if}


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

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