Hi Ballouta,
It seems there's a missing code in the product model query, if it has multi language it will display unit from the first record of result. So it will show uncorrect unit weight. To fix it go to /catalog/model/catalog/product.php. In the query of public function getProduct($product_id), add this at the end of the line :
From
Code: Select all
....' AND p.date_available <= NOW() AND p.status = '1'");
Becomes
Code: Select all
' AND p.date_available <= NOW() AND p.status = '1' AND w.language_id = '" . (int) $this->config->get('config_language_id') . "'");
Note the addition where clause w.language_id, this makes sure the data that will be read only based on active language.
As ilustrasion, if you have 2 languages
record id | language | weight unit
1 | english | kg
2 | arabic | ahlan
Before it will always read first record whatever the language. Now after adding w.language_id clausa, it will choose the matching record based on active language.
Hope this will solve your problem.
Cheers!
Cevarief.