News:

Looking for documentation? Take a look on our wiki

Main Menu

Related products thumb cannot assign language

Started by veselinovm, August 17, 2023, 17:04:56 PM

Previous topic - Next topic

veselinovm

VM: 4.0.12 10777
Joomla:  4.3.3
php: 8.2

Hi,
I am trying to assign language for product image.
I have multilang Virtuemart shop and Joomla. Everything works fine.
Product in different language shows correct photo, but "related products" custom field on ProductDetails page shows correct product (name and link), but shows thumb from default language.
In Media Files all languages are set correct.
In administrator/product when I want to change language for a image it does not allow me, after pressing "save" it returns default language.
tried to assign thumb url to specific image in 'resized" folder , but no luck.

Please help.
Thank you,
Milos


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

veselinovm

Thank you very much for a quick reply.

Unfortunately no, it is not fixed.
I think it is in this line of code, in a file related.php

$related = $viewData['related'];
$customfield = $viewData['customfield'];
$thumb = $viewData['thumb'];

echo JHtml::link (JRoute::_ ($related->link), $thumb   . $related->product_name, array('title' => $related->product_name));

I could give you access to site?