News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

how can i get all products from category?

Started by reddevil, December 07, 2012, 11:56:07 AM

Previous topic - Next topic

reddevil

hi,

in productdetails I use:

$categoryModel= VmModel::getModel('category'); //Load the category model
$category = $categoryModel->getCategory($this->product->virtuemart_category_id);   //Load products in that category
$productModel= VmModel::getModel('product'); //Load the product model
$products = $productModel->getProductsInCategory($this->product->virtuemart_category_id);

, but I get no more 9 products, since  I have max products on one page = 9! how can change this?

please help!

Thanks/

Peter Pillen

there is a contradiction in question... productdetails is the page used for the detailed page. I suppose you want to set the number of products in the category view?

you can set this in virtuemart > configuration > frontend

reddevil

NO), I want to show all products of current category on productdetails page!

Virtual

Product Categories > your category > Category Form Initial Display Records