Addamz Posted March 23, 2010 Share Posted March 23, 2010 Hi. I need remove right column in cart (order.php) and stretch cart contents. Can you help me?Please check images.Thank you. Link to comment Share on other sites More sharing options...
Addamz Posted March 25, 2010 Author Share Posted March 25, 2010 Nobody can help me? Please. Link to comment Share on other sites More sharing options...
rocky Posted March 25, 2010 Share Posted March 25, 2010 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 More sharing options...
Addamz Posted March 25, 2010 Author Share Posted March 25, 2010 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? Link to comment Share on other sites More sharing options...
rocky Posted March 25, 2010 Share Posted March 25, 2010 You'll need to add the following to your global.css: body#order div.addresses { width: 750px } Change 750px to whatever width you want. Link to comment Share on other sites More sharing options...
Addamz Posted March 25, 2010 Author Share Posted March 25, 2010 Thank you again. But I have a new problem. I hope its last . Please check image. Link to comment Share on other sites More sharing options...
rocky Posted March 25, 2010 Share Posted March 25, 2010 I think adding the following to your global.css should work: p.cart_navigation { clear: left } Link to comment Share on other sites More sharing options...
Addamz Posted March 25, 2010 Author Share Posted March 25, 2010 No addresses is still showing in order step 0. But a dont know why? Link to comment Share on other sites More sharing options...
rocky Posted March 25, 2010 Share Posted March 25, 2010 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 More sharing options...
Addamz Posted March 26, 2010 Author Share Posted March 26, 2010 Yes all is now OK. Thank you very much for help. You are PrestaGod Link to comment Share on other sites More sharing options...
Willem Posted May 29, 2010 Share Posted May 29, 2010 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 More sharing options...
rocky Posted May 29, 2010 Share Posted May 29, 2010 I don't understand. Can you post screenshots? Link to comment Share on other sites More sharing options...
Willem Posted May 30, 2010 Share Posted May 30, 2010 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 basketI'll think it's in the footer.tpl in the themeI hope you'll understand me.Greetz Willem Link to comment Share on other sites More sharing options...
nitascript Posted July 20, 2010 Share Posted July 20, 2010 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.phpauthentication.php?back=identity.php. authentication.php?back=discount.phpauthentication.php?back=history.phpauthentication.php?back=addresses.phpI 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now