News:

Support the VirtueMart project and become a member

Main Menu

show products of current category on detail product page

Started by reddevil, October 19, 2012, 18:58:00 PM

Previous topic - Next topic

reddevil

hi,

how can i show products of current category on detail product page without using module ?

please help!

virtuemart 2.0.6
Joomla! 2.5.1

Thanks!

PRO

have you tried related products?


you could also use the product module, and choose filter by category (but you said no module)

reddevil

i need to show all products current category on detail product page.

bytelord

Hi,

you could load the category model and use same code as category template. That will work i think

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

reddevil

hi,

how can i load the category model?
i found that i have to write "$categoryModel = VmModel::getModel('Category');", but i don't know that i have to do next...

Please help!

thanks.