VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: conejo on January 16, 2013, 19:11:41 PM

Title: foreach ($this->products as $product) but in the productdetails view
Post by: conejo on January 16, 2013, 19:11:41 PM
Hallo!
I want to create a browse div like in /mytemplate/html/com_virtuemart/category/default.php using the foreach ($this->products as $product) loop.
I need to do this in the /mytemplate/html/com_virtuemart/productdetails/default.php.
Of course, the "this" object in this file is a product object and not a category one like in the category view.
How can I get the category object with the product list to use a loop like foreach ($productlistobject as $product)..... in the productdetails view?

Thanks a lot in advance!
Alejandro