VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: Dimi on March 10, 2021, 10:43:20 am

Title: Display custom fields uising getProductListing
Post by: Dimi on March 10, 2021, 10:43:20 am
I am trying to accomplish what I have posted ( using the following code:
Code: [Select]
$productsChildren = array();
$productsChildren['products'] = $productModel->getProductListing(false, false, true, true, false, true, $child->virtuemart_category_id, false, 0);

The products display correctly, but I can't get the custom fields. If I use the default way of products display, the custom fields display correctly.

How can I display tyhe custom fields? I am thinking that changing the getProductListing() would get me the custom fields, but I don't know how to do it.

Any ideas?

Joomla Joomla! 3.9.25
Virtuemart 3.8.4
Php 7.3