Hello
Works great!
Решение для VM3 состоит в том, чтобы поместить этот фрагмент в файл \ моя корневая папка joomla \ components \ com_virtuemart \ views \ productdetails \ tmpl \ default.php везде, где вы хотите, чтобы появилось настраиваемое поле.
<? php
echo shopFunctionsF :: renderVmSubLayout ('customfields', array ('product' => $ this-> product, 'position' => 'myposition'));
?>
VirtueMart 3.4.2 / Joomla! 3.8.12 / protostar/
siteThis, but only for the category page !?
,,,/templates/protostar/html/com_virtuemart/sublayouts/products.php
--
In the category all products are the same, and one is special. It is necessary to highlight it by labeling the picture
Thanks
// Show Products ?>
<div class="product vm-col<?php echo ' vm-col-' . $products_per_row . $show_vertical_separator ?>">
<div class="spacer product-container">
<div class="vm-product-media-container">
<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link.$ItemidStr; ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);
?>
</a>
???
???
???
</div>