how is the link to the manu page constructed in the template?
I dont really understand what you mean

I guess you mean the link in default_manufactuter.php
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturers_details->virtuemart_manufacturer_id. '&tmpl=component', FALSE);
does it come from the view.html.php?
Maybe. But I didn't override it and dont have it in overrides.
I get to manu page from product details page i.e
https://www.kovrovik.com.ua/efes-0559-green-round-detailTo show manufacturer on product page I added to template override /templates/my_template/html/com_virtuemart/productdetails/custom.php (I dont really understand the code: I found the solution on a forum).
<?php
// Manufacturer of the Product
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) {
echo $this->loadTemplate('manufacturer');
}
?>
When I click on manufacturer name I get popup with link to view all products. And this link randomly leads to wrong url. So does the manufacturer link when I add manufacturers module.
what about a https://www.php.net/manual/en/function.preg-replace.php in the template to get rid of the virtuemart_category_id?
I'd like to but I dont understand PHP.