Virtuemart 3如何在php的父类别中显示子类别(子类别)?

时间:2018-06-27 11:48:50

标签: joomla joomla2.5 joomla3.0 joomla-extensions virtuemart

请编写一个工作类似的代码,以在Constancemart 3中派生父类别的子类别

<?php
foreach ($category->childs as $child) {
$cattext = vmText::_($child->category_name);
?>
 <a href="<?php echo @$caturl ?>" title="<?php echo $child->category_name ?>">
 <?php echo $child->category_name ?></a>


     变量很多,对我没有帮助

   foreach ($this->category->haschildren) {

和许多变体

   foreach ($category->child as $child) {
   foreach ($category->childs as $child) {
   foreach ($category->haschild as $child) {
   foreach ($category->haschildren as $child) {
   foreach ($category->children as $child) {

此代码也不起作用

    echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children));

0 个答案:

没有答案