Have you try to show the standard product module ? You can choose to show product from current category, so it should work
Yes, I’m using standard Virtuemart Module “mod_virtuemart_product” but I need a condition to only show products from the last category tree that product belongs!
and in the module Category filter, there are not that item to select;
only Top Level Category and also all categories on the system…
The solution could be:
- Add php code to “mod_virtuemart_product” to allow also filtering by Last Category Level
- Or a code condition to only echo the Last Category Level products
(this code need to be completed)
<div class="related-colours">
<?php //shows related colours by last category level
if (VmConfig::get('category', 0) == 1) {
if (!empty($this->product->category)){
echo '{module related-colours}';
}
}
?>