Difference between revisions of "Making a Custom Sidebox"

From Zen Cart(tm) Wiki
Jump to: navigation, search
Line 1: Line 1:
This tutorial explains how to make a very simple new sidebox.
===Creating the new sidebox files===
Note: replace ''new'' with the name of your new sidebox
A sidebox consists of three files which are located in the includes directory:
  $show_new_sidebox = true;
  if ($show_new_sidebox == true){
    $current_page_base,'sideboxes'). '/tpl_new_sidebox.php');
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    require($template-&gt;get_template_dir($column_box_default, DIR_WS_TEMPLATE,
    $current_page_base,'common') . '/' . $column_box_default);
  define('BOX_HEADING_NEW_SIDEBOX', 'Gallery');
  $content = <<< End_Of_Quote
  Enter your sidebox content here
===Installing your new sidebox===
#Upload these three files
#Go to admin/tools/layout box controller
If your installation was successfull this page will have a notice on the top that there is a new sidebox installed.  Turn your box on and set it up to display where you want.
--[[User:Digitalusmedia|Digitalusmedia]] 15:11, 8 November 2006 (EST)
''Thanks to MommaMuse for the Blank Sidebox Mod that I am basing this tutorial on!''

Revision as of 00:35, 5 December 2007