I want to create you may also interested Section in product detail page. this section create most view product of current product of categories. means view.phtml file product of categories of most view product.
$categories = $_product->getCategoryCollection()
->addAttributeToSelect('name');
foreach($categories as $category) {
$catIds[] = $category->getID();
}
print_r(catIds);
here i am get category 17,31. i can not undestand how to get this category most view product display here.
How to do it.