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

moving vertical menus to other side?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-26-2006, 01:21 PM
 
sunedaze sunedaze is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 46
 

Default moving vertical menus to other side?

How do I move some of my vertical menus to the other side of my site? I would like them all lined up on the left side instead of 1/2 and 1/2. I would like the 'your cart' and 'authentication' boxes moved from the right side to the left. What template do I need to edit? And how do I need to edit it? Any help would be appreciated - thanks!
__________________
Thanks,
Sienna
x-cart gold version 4.0.18
Reply With Quote
  #2  
Old 07-26-2006, 03:35 PM
 
firelight firelight is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 43
 

Default

Your skin1/customer/home.tpl is the template that determines your main structure (columns) of your site.
Reply With Quote
  #3  
Old 07-26-2006, 04:21 PM
 
sunedaze sunedaze is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 46
 

Default

How do I move it over to the other side? I have been trying a bunch of different things, but my I am getting some crazy results! I assume I need to copy / paste a few lines from part of the template and put them somewhere else, but I am ending up with all sorts of problems. The template is below if anyone knows what lines I need to move.... thank you in advance!

{* $Id: home.tpl,v 1.67.2.10 2005/10/31 11:36:14 max Exp $ *}
{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|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}

<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="6"></TD>
<TD width="150" valign="top">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }


{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{ include file="help.tpl" }
[img]{$ImagesDir}/spacer.gif[/img]
</TD>
<TD width="20"></TD>
<TD valign="top">

{include file="location.tpl"}

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


</TD>
<TD width="20"></TD>
<TD width="150" valign="top">
{if $active_modules.SnS_connector && $sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}


{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{ include file="modules/Feature_Comparison/product_list.tpl" }


{/if}
{if $active_modules.Users_online ne "" and $users_online}
{ 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.Interneka ne ""}


{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


[img]{$ImagesDir}/spacer.gif[/img]
</TD>
<TD width="6"></TD>
</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}
__________________
Thanks,
Sienna
x-cart gold version 4.0.18
Reply With Quote
  #4  
Old 07-26-2006, 06:44 PM
 
carpeperdiem carpeperdiem is offline
 

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

Default

You will have to get a little dirty and edit some code...

It's fairly clear, if you've edited code before (actually it's VERY clear) - but if this is all greek, then you may want to get someone to help you (or you will have quite a learning curve).

Basically, take EVERYTHING from the right side -- you can tell it's the right side because the code is commented -- and there is a new table that starts here...

Start commenting out sections (look for {include file...} or {if} tags... you can find the end of an expression by {/if} or other closing tag.

If you are not using the modules, comment them out. Make sure are COMPLETELY backed up (mySQL as well as all the site files) before you do anything. My routine: backup MySQL using the x-cart admin. THEN via SSH, make a tarball (.tgz) and then dump it down to your hard drive. keep the .tgz file on your server just in case... then once your mods are happy, trash it. If something goes terribly wrong, a very simple tar -xzvf expands your .tgz into your site. yeah, you need many skills to do this... that's how some of the guys here make a living. Some of us have these skills and do not do it professionally (just for own businesses - but we could...) PS -- I have owned x-cart for one week... you'll get it... stick with it! Learn what you have to so that the rest of this is automatic.

Code:
{* THIS IS WHERE THE RIGHT COLUMN ITEMS START *} {* FIND THE MODULES THAT YOU WANT TO MOVE *} {* RESPECT THE if-else tags *} <TD width="20"></TD> <TD width="150" valign="top"> {if $active_modules.SnS_connector && $sns_collector_path_url ne ''} {include file="modules/SnS_connector/button.tpl"} {/if} {if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''} { include file="modules/Feature_Comparison/product_list.tpl" } {/if} {if $active_modules.Users_online ne "" and $users_online} { 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.Interneka ne ""} { include file="modules/Interneka/menu_interneka.tpl" } {/if} { include file="poweredby.tpl" } [img]{$ImagesDir}/spacer.gif[/img] </TD> <TD width="6"></TD> </TR> </TABLE>
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 07-27-2006, 10:31 AM
 
sunedaze sunedaze is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 46
 

Default

Thank you for taking the time to help me out. I haven't worked with smarty templates before, so I have been learning as I go... what I have figured out so far makes sense once you understand it.
__________________
Thanks,
Sienna
x-cart gold version 4.0.18
Reply With Quote
  #6  
Old 07-27-2006, 10:39 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default

One more thing -- get to know Webmaster Mode

This mode will visually show you what is where and how it all fits together. I refer to it constantly.

ALSO -- don't forget Balinor's excellent resource: Template Editing Guide
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 07-27-2006, 04:15 PM
 
sunedaze sunedaze is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 46
 

Default

I got it to work - thank you! Also thanks for the other forum reference, I have bookmarked that.
__________________
Thanks,
Sienna
x-cart gold version 4.0.18
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 02:33 PM.

   

 
X-Cart forums © 2001-2020