Hello,
I'm trying to display my front page in parts. So I have a main category where all my products are located, but I want to split up the main products and their parts.
So like this:
Products
- Prod 1
- Prod 2 etc
Parts
- Part 1
- Part 2 etc.
Now I thought about using child category, so I make a category "Parts" and put it in the main Products category and then I display the products and the child products below eachother.
But when I do that I see all the products in the top part, and below that there is only a link to the category. How can I achieve just direct links to products, but just parted so I have some overview.
Anybody has an idea?
Ok, I'm one step closer. The only thing that has to work is the actual display of the child category products.
With this code I can get all the products in the child category:
$productModel = VmModel::getModel('Product');
$productsChildren = $productModel->getProductListing($group, $nbrReturnProducts, $withCalc, $onlyPublished, $single, $filterCategory, $category_id = $this->category->children->virtuemart_category_id, $filterManufacturer, $manufacturer_id);
echo shopFunctionsF::renderVmSubLayout('products',array('products'=>$productsChildren,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
The last one is not working. Maybe I need to no use the other things like currency or products per row