Jump to content

[SOLVED] Remove right column in order


Recommended Posts

Change lines 4-7 of footer.tpl in your theme's directory from:

<!-- Right -->

               {$HOOK_RIGHT_COLUMN}



to:

{if $page_name != 'order'}
<!-- Right -->

               {$HOOK_RIGHT_COLUMN}

{/if}



and then add the following to css/global.css in your theme's directory:

body#order #center_column { width: 768px }



This code will hide the right column on order.php and change the width of the center column on order.php to 768px. Adjust that width if necessary.

Link to comment
Share on other sites

I don't understand. Do you want to remove the addresses from the shopping cart summary, so that they only appear on the address step? You can do that by {* commenting out *} lines 220-252 of shopping-cart.tpl in your theme's directory:

{if ($carrier->id AND !$virtualCart) OR $delivery->id OR $invoice->id}

   {if $delivery->id}

{l s='Delivery address'}
       {if $delivery->company}{$delivery->company|escape:'htmlall':'UTF-8'}{/if}
{$delivery->lastname|escape:'htmlall':'UTF-8'} {$delivery->firstname|escape:'htmlall':'UTF-8'}
{$delivery->address1|escape:'htmlall':'UTF-8'}
       {if $delivery->address2}{$delivery->address2|escape:'htmlall':'UTF-8'}{/if}
{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}
{$delivery->country|escape:'htmlall':'UTF-8'}

   {/if}
   {if $invoice->id}

{l s='Invoice address'}
       {if $invoice->company}{$invoice->company|escape:'htmlall':'UTF-8'}{/if}
{$invoice->lastname|escape:'htmlall':'UTF-8'} {$invoice->firstname|escape:'htmlall':'UTF-8'}
{$invoice->address1|escape:'htmlall':'UTF-8'}
       {if $invoice->address2}{$invoice->address2|escape:'htmlall':'UTF-8'}{/if}
{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}
{$invoice->country|escape:'htmlall':'UTF-8'}

   {/if}
   {if $carrier->id AND !$virtualCart}

{l s='Carrier:'}
       {if isset($carrierPicture)}id}.jpg" alt="{l s='Carrier'}" />{/if}
{$carrier->name|escape:'htmlall':'UTF-8'}

   {/if}

{/if}

Link to comment
Share on other sites

  • 2 months later...

Hello Rocky maybe you can help me again.

I have, as you said, the footer.tpl amended by choosing the product. That works great. Now I have the following: if I order to choose the right block disappear. Here I have the following code included in footer.tpl
(If $ page_name! = 'Product')


($) HOOK_RIGHT_COLUMN
Div>
Elseif ($ page_name! = 'Order')


($) HOOK_RIGHT_COLUMN
Div>
(/ If)

in global.css I stipulate:
# # body product center_column (width: 768px)
# # body order center_column (width: 768px)

But now the right block in the middle under the overview of the basket.
How can I block the right disappear?

Greetz Willem
Link to comment
Share on other sites

First shot (shot1.jpg) is the normal view.

shot 2 (shot2.jpg) is detail of the product. Right bar is under the left bar.
shot 3 (shot3.png, 4 and 5) is the detail of the basket and the right bar is under the detail of the basket

I'll think it's in the footer.tpl in the theme

I hope you'll understand me.

Greetz Willem

24393_abLxbYGbYs5lf1qiaoSH_t

24394_rZ1jSwaFicqYlqEhlNyQ_t

24396_AIhJrLJJmZ008pKdDSSA_t

24397_xDcVS4KCHtJzaHvvCn7a_t

Link to comment
Share on other sites

  • 1 month later...

This worked great to remove the right column from the order page. How do I remove the right column on the authentication pages...?

authentication.php?back=my-account.php
authentication.php?back=identity.php.
authentication.php?back=discount.php
authentication.php?back=history.php
authentication.php?back=addresses.php


I am working on a theme that is 750 px wide, and I need to remove the right column on every page that shows the summary at the top. I tried a few things but couldn't get it. Thanks for your help.

Update:
Okay, I tried again and got it to work. The problem was I was trying to put everything on one line in global.css. I put the authentication on a separate line and it worked:

body#order #center_column { width: 560px }

body#authentication #center_column { width: 560px }



I don't see where to delete this post.

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...