UK SHIPPING | SHIPPING NAME IN OTHER LANGUAGE
That way, you can show both fairly easily. That could however get tedious for you if you have a large number
If no other way, I wil probably end up adding few lines of logic to handle each language hardcoded.
Regards
Aladdin
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Does someone have a vqmod for this? It would be great if we could translate them out of the box like so many other portions of open cart. I am using 1.5.4.1
for example, on my backend i have all the geozones standard in english.... but on the front end in certain shipping methods instead of using a multilingual name it pulls the name from the database as the english geo zone name.... so if a foreign customer chooses that shipping method, instead of showing his/her language, it'll show the always english geozone name...
primarily the shipping method based on weight....
so what i did was this:
on catalog/model/shipping/weight.php
i changed this section:
Code: Select all
if ((string)$cost != '') {
$quote_data['weight_' . $result['geo_zone_id']] = array(
'code' => 'weight.weight_' . $result['geo_zone_id'],
'title' => $this->language->get('text_title'),
//$result['name'],
make sense?
i'm using version 2.1.0.1....
hope this helps!
however, if you are wanting to mulitranslate the entire geozone backend database list..... then that's another story

These changes will only imply the selected language you are currently using as it will not be reflected based on the associated geo zone ID pull in from the database for other users as the same result you would expect. One quick way to do this would be by using the GeoIP module and the associated GEO IP's country code with the database country code that your store has relatively.make sense?
Although, this may indicate results based on your customer's providers location and not based on the actual location where the customer will visit your store. For instance, the geo zone name would be displayed based on a different location to where the customer's provider might be located as well as your store. The question would be to know how to distinguish both ends on that side in order to provide the right linguistic result on the browser.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 4 guests