Newsletter

KB Article

GP COM
Required template changes in version 4.13

Required template changes in version 4.13

Changes to be done in design_user templates in order to work “breadcrumbs” and  “Category drop-down menu” features after 4.13 OpenBizBox update:

in layout.tpl – replace this code:

                        <!-- Toolbar -->
<div id="toolbar" class="brick bar clearfix">
<? if ((bool(DISPLAY_BREADCRUMB) || isInSetupMode()) && (empty($HTTP_GET_VARS['cPath']) || empty($HTTP_GET_VARS['manufacturers_id']))): ?>
<div id="breadcrumbs" class="bar-item box"><?=$GLOBALS['breadcrumb']->trail(' \ '); ?></div>
<? endif ?>
<?=_getBoxesHTML('breadcrumb') ?>
</div>
<!-- /Toolbar -->

to this code:

		<? if (bool(DISPLAY_CATEGORY_DROPDOWN) || isInSetupMode()): ?>
<!-- Navigation -->
<div id="navigation" class="bar clearfix">
<? NavigationRender::render(getAllCategoriesTree(),getMainCurrentCategoryId(), 'category') ?>
<?=_getBoxesHTML('navigation') ?>
</div>
<!-- /Navigation -->
<? endif ?>

<!-- Toolbar -->
<div id="toolbar" class="brick bar clearfix">
<?=_getBoxesHTML('breadcrumb') ?>
</div>
<!-- /Toolbar -->

Also make sure that file 'css/stylesheet-4.13.css' is included in $required_files, and to add this line after the require_once(DIR_FS_FUNCTIONS . "_functions.tpl") already there;

require_once(DIR_FS_CLASSES . 'NavigationRender.php');

at the top of the layout.tpl to apply styles for multicolumn product list layout.

To make the new filters box work, you will need the following files in the $required_files array;

$required_files = array(
CURRENT_SKIN . '/css/obb.core.css',
CURRENT_SKIN . '/css/obb.menu.css',
CURRENT_SKIN . '/css/obb.layout.css',
CURRENT_SKIN . '/css/obb.content.css',
CURRENT_SKIN . '/css/default.css',
CURRENT_SKIN . '/css/stylesheet.css',
CURRENT_SKIN . '/css/trackbar.css',
CURRENT_SKIN . '/css/thickbox.css',
CURRENT_SKIN . '/css/prices.css',
DIR_WS_JS . 'jquery-ui/jquery-ui.css',
CURRENT_SKIN . '/css/stylesheet-4.13.css',
DIR_WS_JS . 'jquery.js',
CURRENT_SKIN . '/js/jquery.extramarkup.js',
DIR_WS_JS . 'thickbox.js',
DIR_WS_JS . 'trackbar.js',
DIR_WS_JS . 'common.js',
DIR_WS_JS . 'general.js',
DIR_WS_JS . 'category.js',
DIR_WS_JS . 'product.js',
DIR_WS_JS . 'jquery-ui/jquery.ui.core.js',
DIR_WS_JS . 'jquery-ui/jquery.ui.widget.js',
DIR_WS_JS . 'jquery-ui/jquery.ui.mouse.js',
DIR_WS_JS . 'jquery-ui/jquery.ui.slider.js'
);

And make sure that you include templates with include(obbLib::getFETemplateFilename(“reusable/template.tpl”)); with relative path to tpl/ folder instead of simple include(“reusable/template.tpl”); to use template fallbacks.

 


Category: Version 4.x, OpenBizBox Shop System