If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Sidebox problem - Can't get side boxes to appear in right column of product info page

Sidebox problem - Can't get side boxes to appear in right column of product info page

Started by podgeminster on 13 Oct 2012, 12:01 PM · Views: 2,349

Results 1 to 6 of 6
13 Oct 2012, 12:01 PM
#1
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

Post #1 by podgeminster

Hi All,

I'm using version v1.3.9h and I would like to display banners in the far right hand column of my product info pages.

Our main index page and category pages (see link 1 and 2 below) are are all able to display side boxes in the far right hand column of the page but when you click to an individual product info page, all right hand side boxes disappear (see link 3 below).

Any ideas as to why this happens and how I can activate the far right hand column on the product info pages?

Link 1. http://www.futuregarageservices.co.uk/shop/
Link 2. http://www.futuregarageservices.co.uk/shop/air-power-tools-c-55.html
Link 3. http://www.futuregarageservices.co.uk/shop/sealey-gg0720-generator-720w-230v-2hp-p-12718.html

13 Oct 2012, 2:06 PM
#2
stevesh avatar

stevesh

Black Belt

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

Post #2 by stevesh

Just looking at the source of the page, I would assume that you have code in (possibly) tpl_product_info_display.php that turns that side column off on that page. Maybe part of the template coding ?

13 Oct 2012, 2:07 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Post #3 by gjh42

Often the cause of that issue is a PHP error on the page in question which halts output processing. That would eliminate the footer too, though, and your footer is intact and the code flows normally as if the right column was intentionally turned off.
Do you have any customizations to /includes/templates/your_template/common/tpl_main_page.php? Has the issue always been there? If not, when did it start, and what things did you do before that?

tpl_product_info_display.php would also be a likely place to look.

14 Oct 2012, 2:52 PM
#4
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

Post #4 by podgeminster

Thanks for the pointers - I've found the answer.

The file in question was includes/templates/template_default/common/tpl_main_page.php - this contains a line of code which deactivates the right hand column of several pages - mainly checkout pages and account pages but also product info pages.

I created and override of this file in my custom template folder, located the following block of code:

// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,login,product_info,shopping_cart,account,account_history_info,account_history')) ) {
$flag_disable_right = true;
}

... and erased "product_info" from the list of pages included.

Voila! The right hand column now appears on product info pages.

14 Oct 2012, 10:51 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Post #5 by gjh42

That copy of the file had already been customized from stock, and should not have been in /template_default/, but in your template folder where you put your copy.

15 Oct 2012, 8:57 PM
#6
podgeminster avatar

podgeminster

New Zenner

Join Date:
Mar 2011
Posts:
46
Plugin Contributions:
0

Post #6 by podgeminster

Whoops! My bad.

I guess this illustrates the importance of using overrides!