Forums / Templates, Stylesheets, Page Layout / Remove right sidebox shopping cart from when on shopping cart page

Remove right sidebox shopping cart from when on shopping cart page

Locked

Started by alterego55 on 30 Sep 2010, 6:28 PM · Views: 4,283

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Sep 2010, 6:28 PM
#1
alterego55 avatar

alterego55

New Zenner

Join Date:
Sep 2010
Posts:
28
Plugin Contributions:
0

Remove right sidebox shopping cart from when on shopping cart page

1.3.9

I have the shopping cart in a right sidebox on my pages. When on the full shopping cart page, the right sidebar shopping cart still displays. How do I remove it just on that page.

Thx

30 Sep 2010, 6:42 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Remove right sidebox shopping cart from when on shopping cart page

Admin - Configuration - Layout Settings - Shopping Cart Box Status

30 Sep 2010, 6:42 PM
#3
alterego55 avatar

alterego55

New Zenner

Join Date:
Sep 2010
Posts:
28
Plugin Contributions:
0

Re: Remove right sidebox shopping cart from when on shopping cart page

I noticed there is an includes/modules/sideboxes/shopping_cart.php file

I also noticed there is an includes/modules/sideboxes/classic folder

Does that mean I can override shopping_cart.php in an includes/modules/sideboxes/mytemplate folder?

30 Sep 2010, 6:59 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Remove right sidebox shopping cart from when on shopping cart page

That is correct. You will want to add logic to set $show_shopping_cart to true or false according to
if ($current_page_base == 'shopping_cart') {

30 Sep 2010, 7:35 PM
#5
stevesh avatar

stevesh

Black Belt

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

Re: Remove right sidebox shopping cart from when on shopping cart page

You don't want to use the admin switch ?

1 Oct 2010, 6:24 PM
#6
alterego55 avatar

alterego55

New Zenner

Join Date:
Sep 2010
Posts:
28
Plugin Contributions:
0

Re: Remove right sidebox shopping cart from when on shopping cart page

The admin switch doesn't account for "show cart if it isn't full" and "don't show cart on the cart page".

1 Oct 2010, 6:27 PM
#7
alterego55 avatar

alterego55

New Zenner

Join Date:
Sep 2010
Posts:
28
Plugin Contributions:
0

Re: Remove right sidebox shopping cart from when on shopping cart page

gjh42,

If the main page is not referenced directly, is the page name always = to the url param as such:

main_page=product_info

2 Oct 2010, 12:45 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Remove right sidebox shopping cart from when on shopping cart page

Yes, if you have main_page=product_info in the URL, $current_page_base will be 'product_info'.