首页 > Zencart > zencart的category_tree分类树处理对象

zencart的category_tree分类树处理对象

zencart左侧的分类树标题,所处位置都在layout_boxes表中.通过sidebox目录下的调用显示出来.
zencart系统的分类树在includes/modules/sideboxes/categories.php中.

$main_category_tree = new category_tree;
是zen cart分类树的类对象,用来处理分类的。

$check_categories = $db ->Execute( “select categories_id from “ . TABLE_CATEGORIES . ” where categories_status=1 limit 1″ );
获取该分类树状态正常显示的标识.

require ( $template ->get_template_dir( ‘tpl_categories.php’ ,DIR_WS_TEMPLATE, $current_page_base , ‘sideboxes’ ). ‘/tpl_categories.php’ );
目的是包含includes/templates/zccn/sideboxes/tpl_categories.php 包含分类子模板的。

require ( $template ->get_template_dir( $column_box_default , DIR_WS_TEMPLATE, $current_page_base , ‘common’ ) . ‘/’ . $column_box_default );
实际是为了包含includes/templates/template_default/common/tpl_box_default_left.php .

  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: