【发布时间】:2012-03-06 08:06:02
【问题描述】:
我正在 Joomla 中创建一个组件,该组件显示了 mercurial 产品的列表
要求是不能直接使用sql表中的代码。
所以我使用components/com_virtuemart/virtuemart_parser.php
对于代码,我得到数组中的类别列表,代码是
require_once( CLASSPATH . 'ps_product_category.php');
$ps_product_category = new ps_product_category();
$tpl = new $GLOBALS['VM_THEMECLASS']();
$category_childs = $ps_product_category->get_child_list(0);
$tpl->set( 'categories', $category_childs );
$categories = ps_product_category::getCategoryTreeArray(true);
从这段代码中我得到所有已发布的类别,但是如何从类别中获取所有产品
how to show product list, how to get product list in array ?
【问题讨论】:
标签: joomla1.5 virtuemart