Zen Cart Logo
Forums / Addon Sideboxes / Not seeing the new sidebox

Not seeing the new sidebox

Locked

Views: 1,084

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Feb 2010, 12:58 AM
#1
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

Not seeing the new sidebox

OK, I found the WIKI page "Creating the new sidebox files".

I followed the directions, created and populated the following new files with the code supplied:

includes/modules/sideboxes/orcatools/orcatools_sidebox.php

includes/languages/english/extra_definitions/orcatools/orcatools_sidebox_defines.php

includes/templates/orcatools/sideboxes/tpl_orcatools_sidebox.php

Went to Admin/tools/layout box controller, saw the "new sidebox" notice, and activated it by turning the "left" side on.

Saved that, reloaded the store, and the sidebox is blank.

What am I doing wrong?

2 Feb 2010, 1:11 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Not seeing the new sidebox

Went to Admin/tools/layout box controller, saw the "new sidebox" notice, and activated it by turning the "left" side on.

Saved that, reloaded the store, and the sidebox is blank.
You have a successful sidebox displated...
What is the code for what should be in the sidebox?

2 Feb 2010, 2:04 AM
#3
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

Re: Not seeing the new sidebox

kobra:

You have a successful sidebox displated...
What is the code for what should be in the sidebox?

includes/modules/sideboxes/orcatools/orcatools_sidebox.php:

<?php
 $show_orcatools_sidebox = true;
 if ($show_orcatools_sidebox == true){
   require($template->get_template_dir('tpl_orcatools_sidebox.php',DIR_WS_TEMPLATE,
   $current_page_base,'sideboxes'). '/tpl_orcatools_sidebox.php');
   $title =  BOX_HEADING_NEW_SIDEBOX;
   $left_corner = false;
   $right_corner = false;
   $right_arrow = false;
   require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE,
   $current_page_base,'common') . '/' . $column_box_default);
 }
?>

includes/languages/english/extra_definitions/orcatools/orcatools_sidebox_defines.php:

<?php
  define('BOX_HEADING_ORCASOUL_SIDEBOX', 'Gallery');
?>

includes/templates/orcatools/sideboxes/tpl_orcatools_sidebox.php:

<?php
 $content = <<< End_Of_Quote
  Enter your sidebox content here
 End_Of_Quote;
?>
2 Feb 2010, 1:53 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Not seeing the new sidebox

<?php $content = <<< End_Of_Quote Enter your sidebox content here End_Of_Quote; ?>

This is not even "dummy" content; it neither has single ' or double " quotes to make it a text string, nor is a valid variable or constant that could hold a text value.

So $content will be null, and "null" or nothing is being output in the new sidebox.

You have defined a heading
define('BOX_HEADING_ORCASOUL_SIDEBOX', 'Gallery');

but you are still calling for the value of
$title = BOX_HEADING_NEW_SIDEBOX;

2 Feb 2010, 8:15 PM
#5
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

Re: Not seeing the new sidebox

gjh42:

<?php $content = <<< End_Of_Quote Enter your sidebox content here End_Of_Quote; ?>

This is not even "dummy" content; it neither has single ' or double " quotes to make it a text string, nor is a valid variable or constant that could hold a text value.

So $content will be null, and "null" or nothing is being output in the new sidebox.

You have defined a heading
define('BOX_HEADING_ORCASOUL_SIDEBOX', 'Gallery');

but you are still calling for the value of
$title = BOX_HEADING_NEW_SIDEBOX;

Yes, Virginia, it's always the obvious things that cause most of the problems, isn't it? :bangin:

OK, well at least I seem to have gotten the non-obvious things...:lol:

Thanks for getting back to me on this.