Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How i can hide side Boxes when product description display?

How i can hide side Boxes when product description display?

Views: 540

Results 1 to 2 of 2
15 Feb 2013, 10:28 AM
#1
koolwal avatar

koolwal

New Zenner

Join Date:
Feb 2013
Posts:
5
Plugin Contributions:
0

How i can hide side Boxes when product description display?

Hi,

please intimate to me how i can hide my site side boxes when some one see my product description and (I want this only for product description) and other pages i don't want hide my boxes.
:shocking:

Please help me.

Thanks.

Rajesh Verma

15 Feb 2013, 11:06 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How i can hide side Boxes when product description display?

To stop side columns on certain pages, you edit:

includes/templates/YOUR_TEMPLATE/templates/**tpl_main_page.php
**
IF THIS FILE DOES NOT EXIST IN THAT LOCATION, TRANSFER A COPY OF IT FROM:
includes/templates/template_default/templates/tpl_main_page.php

Open it for editing using a PLAIN TEXT EDITOR

Find this section:

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  }
// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'product_info')) ) {
    $flag_disable_right = true;
  }
  if (in_array($current_page_base,explode(",",'product_info')) ) {
    $flag_disable_left = true;
  }