News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Display custom fields uising getProductListing

Started by Dimi, March 10, 2021, 10:43:20 AM

Previous topic - Next topic

Dimi

Hello,
I am trying to accomplish what I have posted http://forum.virtuemart.net/index.php?topic=146454.0 using the following code:
$productsChildren = array();
$productsChildren['products'] = $productModel->getProductListing(false, false, true, true, false, true, $child->virtuemart_category_id, false, 0);
$productModel->addImages($productsChildren['products']);


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?

VERSIONS
Joomla Joomla! 3.9.25
Virtuemart 3.8.4
Php 7.3