Hi,
Do anyone please tell me the php code to echo the product category of the currunt product on the detail page? Prefer the forced conical preference category.
Using Virtuemart 3.8.8
use the vmdebug. Enable it in the vm config
go in the template, where you see your product for example as $product and use vmdebug('my product',$product); categories keeps all the ids... and I think category or something similar, should have the category you are browsing the product. You may try. vmdebug('my product',$product->categoryItem); or use the canonCatId and use the category model to load it