PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[SOLVED] Remove right column in order

13 replies to this topic
#1
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Hi. I need remove right column in cart (order.php) and stretch cart contents. Can you help me?

Please check images.

Thank you.

Attached Files



#2
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Nobody can help me? Please.

#3
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 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.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#4
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Many many many thanx for help. But I have now one problem with css styling with adresses. Can you help me again how to stretch adresses in order step?

Attached Files



#5
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
You'll need to add the following to your global.css:


body#order div.addresses { width: 750px }


Change 750px to whatever width you want.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#6
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Thank you again. But I have a new problem. I hope its last :). Please check image.

Attached Files

  • Attached File  last.png   48bytes   990 downloads


#7
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
I think adding the following to your global.css should work:


p.cart_navigation { clear: left }

Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#8
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
No addresses is still showing in order step 0. But a dont know why?

#9
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
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}

Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#10
Addamz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
Yes all is now OK. Thank you very much for help. You are PrestaGod :)

#11
Willem

    PrestaShop Apprentice

  • Members
  • PipPip
  • 63 posts
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

Elseif ($ page_name! = 'Order')


($) HOOK_RIGHT_COLUMN

(/ 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

#12
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
I don't understand. Can you post screenshots?
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#13
Willem

    PrestaShop Apprentice

  • Members
  • PipPip
  • 63 posts
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

Attached Files



#14
nitascript

    PrestaShop Newbie

  • Members
  • Pip
  • 12 posts
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.