Zen Cart Logo
Forums / General Questions / Turn Off the right Column

Turn Off the right Column

Views: 1,381

Results 1 to 14 of 14
31 Mar 2015, 2:51 PM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Turn Off the right Column

I have found out how to disable the right hand column```
$flag_disable_right = true;


What I would like to do is 'turn off' the right hand column; not display anything that has been set in 'admin/Tools/Layout Boxes Controller' so that it is not displayed, keeping the centre column in place and it looks like a large right hand indent. I have seen this somewhere but I cannot find it now that I want to do it for myself.
31 Mar 2015, 3:03 PM
#2
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Turn Off the right Column

adb34:

I have found out how to disable the right hand column```
$flag_disable_right = true;

> 
> What I would like to do is 'turn off' the right hand column; not display anything that has been set in 'admin/Tools/Layout Boxes Controller' so that it is not displayed, keeping the centre column in place and it looks like a large right hand indent. I have seen this somewhere but I cannot find it now that I want to do it for myself.

Log into your admin-> configuration -> layout settings -> make the edit to px size
Column Width - Right Boxes     0

admin-> tools_> layout boxes controller
LEFT/RIGHT COLUMN Status - right column is set for off
LEFT or RIGHT COLUMN - select left for all that you require.
31 Mar 2015, 3:49 PM
#3
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

Trinity14:

Log into your admin-> configuration -> layout settings -> make the edit to px size
Column Width - Right Boxes 0

admin-> tools_> layout boxes controller
LEFT/RIGHT COLUMN Status - right column is set for off
LEFT or RIGHT COLUMN - select left for all that you require.

Thanks for the response.

I should have made myself a little clearer; I only want to 'turn off' the right hand column on several pages; 'checkout shipping, checkout Payment, checkout confirmation & checkout success', all other pages the right hand column is active; I have important info in that column which is not relevant whist checking out. As I said before I can use "$flag_disable_right = true;" but it does not give the desired effect I am looking for.

31 Mar 2015, 4:17 PM
#4
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Turn Off the right Column

Can you provide a link to the zen cart you are asking about? I need a bit more info to assist you...

31 Mar 2015, 4:40 PM
#5
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Turn Off the right Column

adb34:

Thanks for the response.

I should have made myself a little clearer; I only want to 'turn off' the right hand column on several pages; 'checkout shipping, checkout Payment, checkout confirmation & checkout success', all other pages the right hand column is active; I have important info in that column which is not relevant whist checking out. As I said before I can use "$flag_disable_right = true;" but it does not give the desired effect I am looking for.

I believe this is similar code to what you have been trying:

if ($current_page_base == 'index' and $cPath == '') {

 $flag_disable_right = true;

 }

This may be where you're looking to make the code adjustments:

example: to override the shopping cart default page

- make a directory /templates/my_template/shopping_cart_default

- copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/shopping_cart_default/tpl_main_page.php

If the above location works, edit these files too:

checkout_confirmation_default
checkout_payment_address_default
checkout_payment_default
checkout_shipping_address_default
checkout_shipping_default
checkout_success_default

Let me know if that helps,

31 Mar 2015, 10:11 PM
#6
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

I will give it a go, however, I have tried something very similar but did not give me the result I was after. If you go to this link this is the result you get, which, for the login I am after.

31 Mar 2015, 10:36 PM
#7
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Turn Off the right Column

It's a Picaflor Azul template that you are modifying. Perhaps Anne can shed some light on where to change the code you are looking for.

31 Mar 2015, 11:06 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Turn Off the right Column

Another idea, and not sure of the specifics off hand, might be to use css for the pages on which to hide the undesired content.

There's a wiki on providing page specific stylesheets and a similar file in the includes/templates/template_default/css directory.

3 Apr 2015, 4:12 PM
#9
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

What I am trying to do is more like making the right column invisible than turn it off for the checkout pages

3 Apr 2015, 5:06 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Turn Off the right Column

If I understand, try (in the stylesheet):

checkoutshippingBody .rightBoxContainer {display: none;}

#checkoutpaymentBody .rightBoxContainer {display: none;}

and the same for the checkout success page.

3 Apr 2015, 5:17 PM
#11
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

stevesh:

If I understand, try (in the stylesheet):

checkoutshippingBody .rightBoxContainer {display: none;}

#checkoutpaymentBody .rightBoxContainer {display: none;}

and the same for the checkout success page.

Now that is the coding I was looking for. I had seen it before. I will give it ago and see what pops up, or in the case I am looking for does not.

3 Apr 2015, 5:29 PM
#12
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

stevesh:

If I understand, try (in the stylesheet):

checkoutshippingBody .rightBoxContainer {display: none;}

#checkoutpaymentBody .rightBoxContainer {display: none;}

and the same for the checkout success page.

Works like a dream. Thank you. I have done three lines of code;```
#checkoutpaymentBody .rightBoxContainer {display: none;}
#checkoutshippingBody .rightBoxContainer {display: none;}
#checkoutconfirmationBody .rightBoxContainer {display: none;}


Thank you again
5 Apr 2015, 5:05 AM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Turn Off the right Column

Could also split that out into different files to be loaded on the applicable page(s) instead of always loading that css on every page:

If you create a file in includes/templates/YOUR_TEMPLATE/css
named:
checkout_payment.css
checkout_shipping.css
checkout_confirmation.css

With the applicable css to apply when just that page is shown.

So in checkout_payment.css could have the above:

#checkoutpaymentBody .rightBoxContainer {display: none;}

5 Apr 2015, 10:02 AM
#14
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Turn Off the right Column

Very good point. I will do it that way, as you said to stop it from being loaded very time. This may help cut down the stylesheet size if I look at other pages that only use one time ccs code.

Thanks for the help