
Originally Posted by
jettrue
Did you upload all the other files from the mod?
Yes. It worked fine in sidebox... now I have it copied into tpl_index_default.php page, with no luck. I looked up other forum posts on using sideboxes in template with no luck.
here is code I posted in tpl_index_default...
HTML Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_manufacturers_select.php 4771 2006-10-17 05:32:42Z ajeh $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('categories_form', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
$content .= zen_draw_pull_down_menu('cPath', zen_get_categories(array(array('id' => '', 'text' => PRODUCT_LISTING_SEARCH_TEXT_ALL_CATEGORIES)), '0' ,'', '1'), (isset($_GET['categories_id']) ? $_GET['categories_id'] : ''), 'onchange="this.form.submit();" size="1"') . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
?>
Bookmarks