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

Single Column side boxes

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-27-2007, 05:03 AM
 
Joedee Joedee is offline
 

Member
  
Join Date: Dec 2006
Posts: 15
 

Default 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
__________________
Elemental Scraps
X-cart Pro V4.2.0[linux]
Cleveland, OH, USA
Reply With Quote
  #2  
Old 05-27-2007, 05:17 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 05-27-2007, 05:19 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 05-27-2007, 05:40 AM
 
Joedee Joedee is offline
 

Member
  
Join Date: Dec 2006
Posts: 15
 

Default Re: Single Column side boxes

Thanks for your super quick response, I will let you know how it goes
__________________
Elemental Scraps
X-cart Pro V4.2.0[linux]
Cleveland, OH, USA
Reply With Quote
  #5  
Old 05-27-2007, 05:57 AM
 
Joedee Joedee is offline
 

Member
  
Join Date: Dec 2006
Posts: 15
 

Default Re: Single Column side boxes

Worked like a charm, thanks so much
__________________
Elemental Scraps
X-cart Pro V4.2.0[linux]
Cleveland, OH, USA
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 11:46 AM.

   

 
X-Cart forums © 2001-2020