Jump to content

[solved] Product details page, checkout page etc. aligned to the right side?


Recommended Posts

I am using one of the free leothemes, though i don't think it has much to do with this problem. As you can see the cart summary page is on the right hand side, as well as the product details page etc.. In what file can I edit the alignment?

EDIT: I have already made sure that there is no modules active and taking up space on the left side, visible or not.

 

Thanks

 

cdbf78aeb36a0cdf850fb880895ddd33b7e307eb.jpg

Edited by vekia (see edit history)
Link to comment
Share on other sites

hello

 

image that you attached doesnt work

Oh, here it is

14bneyw.jpg

 

is it in the order page?

u need to add this on global.css

body#order #center_column {width:URWISHpx;margin-left:wishpx; or margin-left:urwishpx;}

body#order #right_column,#left_column {display:none;}

Anywhere in the global.css? You can check the image i linked to in this post

Edited by Pengus (see edit history)
Link to comment
Share on other sites

Hi Pengus,

Althouh you use a special theme, probably it works very similar to the default theme. If so:

 

Edit file themes/<your leo theme folder>/header.php (Thanks Vekia!)

Edit file themes/<your leo theme folder>/header.tpl

 

Somewhere in the code you will probably see some code similar to this:

<!-- Left -->

<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>

 

N.B. Easy to find with CTRL-F/Command-F in the browser and look for the word HOOK_LEFT_COLUMN ) and you will see it.

 

If found, comment out with this

{* piece of code *}

 

save file and reload page (maybe you need to (TEMPORARILY!) turn off cache and force recompilation in Advanced Parameters->Performance to see the changes.

 

See if it works,

pascal

 

 

EDIT: In above text, please change header.php into header.tpl to get the correct file. (Thanks Vekia!)

Edited by PascalVG
Added comment about php->tpl (see edit history)
Link to comment
Share on other sites

Hi Pengus,

Althouh you use a special theme, probably it works very similar to the default theme. If so:

 

Edit file themes/<your leo theme folder>/header.php

 

Somewhere in the code you will probably see some code similar to this:

<!-- Left -->

<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>

 

N.B. Easy to find with CTRL-F/Command-F in the browser and look for the word HOOK_LEFT_COLUMN ) and you will see it.

 

If found, comment out with this

{* piece of code *}

 

save file and reload page (maybe you need to (TEMPORARILY!) turn off cache and force recompilation in Advanced Parameters->Performance to see the changes.

 

See if it works,

pascal

 

It worked! Thanks man, great job!

Link to comment
Share on other sites

Hi balutten,

You should have a file header.php in the themes/<your theme folder>/ directory (e.g. themes/default/header.php)

if it isn't there, try to locate it in the shop root folder

 

Hope this helps,

pascal

 

If you really can't find it, it always handy to make a 'local backup/copy' of your shop files. This helps in locating text, files etc. Just use the (Windows?) search option and look for a file header.php, starting your search at the shop root.

 

My 2 cents

Edited by PascalVG (see edit history)
Link to comment
Share on other sites

OUCH!! Vekia, you're right!!!

My stupidity! I' really shouldn't do this at 2-3 AM anymore... :((

 

Sorry, balutten for the waste of time and confusion :[[

 

So, we have to go back to a few posts above, change header.php into header.tpl !

 

thanks again, Vekia. You're the man! :-)

 

Link to comment
Share on other sites

Hi balutten,

Think you found it :-)

 

This code tells us:

If not on the home page ("{if $page_name !="index"}...

add the left column.

 

So do this: add the red code {* piece of code *} below to comment it out (i.e. will not be shown anymore):

 

...

<div class="row-fluid">

{*

{if $page_name != "index" }

<div id="leo-leftcol" class="span3">

{ $HOOK_LEFT_COLUMN}

</div> <!--leftcol-->

{/if}

*}

<!-- center -->

...

 

This should do the trick,

pascal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...