There is a need to display the "additional (customizable) fields" of the product, directly in the module in mod_virtuemart_product. Looked for a lot of information on the Internet, found a couple of ways but not one did not help:

<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product));?> 

And this:

 <?php print_r($product->customfields);?> 

And the result was that nothing happened at all.

    1 answer 1

    I did in the custom module through a banal query:

     $db=JFactory::getDbo(); $db->setQuery('SELECT DISTINCT(custom_value) AS cfield FROM #__virtuemart_product_customfields WHERE virtuemart_custom_id=1'); $result=$db->loadObjectList(); foreach($result as $cfields) echo $cfields->cfield ;