VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: veselinovm on August 17, 2023, 17:04:56 PM

Title: Related products thumb cannot assign language
Post by: veselinovm on August 17, 2023, 17:04:56 PM
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

Title: Re: Related products thumb cannot assign language
Post by: jenkinhill on August 18, 2023, 11:54:36 AM
May be fixed in current version VM4.2   https://virtuemart.net/downloads
Title: Re: Related products thumb cannot assign language
Post by: veselinovm on August 18, 2023, 12:17:34 PM
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?


Title: Re: Related products thumb cannot assign language
Post by: veselinovm on August 22, 2023, 08:56:51 AM
Hello,
anyone knows solution?
here is a link:https://www.propolispharm.com/en/propolis-25-drops (https://www.propolispharm.com/en/propolis-25-drops)