If have added custom a translation to the route "mail/order_add" and key "text_greeting" (in OC 3.0.2.0).
But the text in the mail is still taken from the translation file "catalog/language/en-EN/mail/order_add.php ...
Is there something I have to do to "activate" the custom translation?
Thanks for your help in advance!
Bye,
Holger
- Ensure the admin - > systems - > settings - > edit settings - > option - > your order statuses shows a list of order statuses. If not, your system/storage folder must be outside your public_html folder. Follow these instructions for more information: viewtopic.php?f=191&t=186892&p=705633#p705633
Clear all caches from your admin dashboard and from your admin - > extensions - > modifications - > refresh button afterwards.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for your fast reply!
> event table contains more than one row
OK
> admin - > systems - > localisation - > languages - > <your selected language> is enabled
OK
> Extension refresh
OK
> admin dashbord cache refresh
OK
> Ensure the admin - > systems - > settings - > edit settings - > option - > your order
> statuses shows a list of order statuses. If not, your system/storage folder must be outside your public_html folder.
I have already moved the storage folder before working on this issue. This looks fine. But under "admin - > systems - > settings - > edit settings - > option" I see under the section "Checkout" only "Order Status", "Processing Order Status" and "Complete Order Status" - but no "your order statuses".
Any ideas?
Best regards,
Holger
That's fine. Although, the question on this one is about knowing if you do see a list of checkboxes in each of those lists on the option tab or only the frame is showing on each of those order statuses without a list inside. Do you see a list on each of these boxes?under "admin - > systems - > settings - > edit settings - > option" I see under the section "Checkout" only "Order Status", "Processing Order Status" and "Complete Order Status" - but no "your order statuses".
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
> on the option tab or only the frame is showing on each of those order statuses without a list inside. Do you see a list on each of these boxes?
Yes, I do see the statuses in the sections. Some of them are "checked".
Best regards,
Holger
What are the exact and step-by-step walkthrough did you use in order to produce this result?If have added custom a translation to the route "mail/order_add" and key "text_greeting" (in OC 3.0.2.0).
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
- https://github.com/opencart/opencart/bl ... lation.php
- https://github.com/opencart/opencart/bl ... lation.php
- https://github.com/opencart/opencart/bl ... _form.twig
Clear all caches again and see if that fixes the issue afterwards.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
> in order to produce this result?
I have now first deleted the "old" translations and walked through the following steps under the Language Editor:
1. "add new"
2. Choosing:
Store => default
Language => English
Route => mail/order_add
Key => text_greeting
Value => new text
3. Save
4. Clearing Admin Dashboard and Extension/Modification cache
Same result - the e-mail after placing an order still shows the default.
By the way, I have installed the extension "OSWorx German Translation". May this extension force the loading of the defaults from the php file?
Best regards,
Holger
Try the fix solution on my previous reply and see if that resolves the issue. If not, now that you mentioned installing an extension, disable / uninstall this extension noticing the effects after resaving your changes in the language editor.By the way, I have installed the extension "OSWorx German Translation". May this extension force the loading of the defaults from the php file?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I am short before giving up. :-( Extensions are disabled - 3 files replaced by the latest versions.
When I add a translation e.g. for the product page it's working perfect - even without clearing the caches. ;-)
But it does not work for the mail texts ...
Bye,
Holger
find:
Code: Select all
$this->response->redirect($this->url->link('design/translation', 'user_token=' . $this->session->data['user_token'] . $url, true));
Code: Select all
echo "<pre />\n";
print_r($this->request->post);
echo "</pre>\n";
exit;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
right below:
Code: Select all
$this->db->query("INSERT INTO `" . DB_PREFIX . "translation` SET `store_id` = '" . (int)$data['store_id'] . "', `language_id` = '" . (int)$data['language_id'] . "', `route` = '" . $this->db->escape($data['route']) . "', `key` = '" . $this->db->escape($data['key']) . "', `value` = '" . $this->db->escape($data['value']) . "', `date_added` = NOW()");
Code: Select all
echo "<pre />\n";
print_r($this->db->countAffected());
echo "</pre>\n";
exit;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It seems I'm having the same issue as Holger three years ago.
In some cases the language editor works, (for example it work for the route=extension/payment/bank_transfer key=text_title) but it works not for Route=mail/order_add, Key=text_greeting as described below
I modified the following string in the language editor:oc_ms wrote: ↑Mon Dec 04, 2017 5:18 amI am short before giving up. :-( Extensions are disabled - 3 files replaced by the latest versions.
When I add a translation e.g. for the product page it's working perfect - even without clearing the caches. ;-)
But it does not work for the mail texts ...
Bye,
Holger
Language: German (Deutsch-German-v.3.0.13-OC-3.x-from-OSWorX.net.ocmod)
Route: mail/order_add
Key: text_greeting
But the greeting text in the email remains unchanged.
I'm on the latest OC version 3.0.3.6, and PHP v7.4
I'm not using VQmod and I have cleared the OCmod cache
Thanks for any help
cheers
Rolf
solche Variablen der zuständigen LANGUAGE Datei hinzu, wie man das
schon tat, als Du OC kennen lerntest.

Was Einige vielleicht davon abschreckt, ihren Senf dazu zu geben, ist aber
eher die Tatsache, dass Du offenbar auch noch nie Lust dazu verspürtest,
ohne sehr triftigen Grund hier zu sein, um irgendwo mitzuhelfen ...

Nimm's aber besser nicht persönlich, eher als Erklärung, weshalb nicht mehr
'Feedback' dazu reinkam ...
Gruss

Ernst
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I didn't know that it's not recommended to use the language editor. I thought it's useful because modifications survive the installation of an update.
Ups. So this means many people know the answer but don't give it to me because I haven't contributed enough?IP_CAM wrote: ↑Sun Dec 20, 2020 9:39 amWas Einige vielleicht davon abschreckt, ihren Senf dazu zu geben, ist aber
eher die Tatsache, dass Du offenbar auch noch nie Lust dazu verspürtest,
ohne sehr triftigen Grund hier zu sein, um irgendwo mitzuhelfen ...![]()
Nimm's aber besser nicht persönlich, eher als Erklärung, weshalb nicht mehr
'Feedback' dazu reinkam ...
Gruss![]()
Ernst
Well, I'm truly sorry for that. First I haven't contributed much in this forum because I don't consider myself enough of an expert to give correct advice. Second, I am a big fan of the open source movement and I have made significant contributions in other projects. I my understanding of the open source paradigm it matters that you equally give an take, but not where you give and take.
So am I banned form this forum now?
cheers
Rolf
Whilst open source is an ideology which in the days of corporate abuse was great, today it has grown a generation of self-entitled individuals who have very little community spirit or consideration. COVID could not have made this more obvious - This forum has been going that way for some time. That is not to say people should contribute if they do not have the knowledge to do so, but it is to make an effort to offer to pay something for the knowledge of others. Everyone is entitled to make a living and Opencart is a commercial site, as such there is no question that FREE is an unreasonable request. It should always be ‘hoped’ that someone will offer some kindness - in respect of those before us that did the same - thank you thank you to those who I hope know who they are.
As for your issue - do not use the built in editor - it is good advice.
Yes I understand your point, but it does work as expected and causes other issues, so it is not worth it.
The events system is what people here will push you to, I have my reasons why I think that is not the best idea, but the powers that be will do as they wish, as they are entitled to do. Personally stick with OCMOD and you will be able to upgrade easily even if OCMOD no longer exists.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I perfectly understand what you are saying. And I am willing to help. I was searching opencart.com for possibilites to make a donation. I haven't found it.by mona wrote: ↑Sun Dec 20, 2020 11:55 pmWhilst open source is an ideology which in the days of corporate abuse was great, today it has grown a generation of self-entitled individuals who have very little community spirit or consideration. COVID could not have made this more obvious - This forum has been going that way for some time. That is not to say people should contribute if they do not have the knowledge to do so, but it is to make an effort to offer to pay something for the knowledge of others. Everyone is entitled to make a living and Opencart is a commercial site, as such there is no question that FREE is an unreasonable request. It should always be ‘hoped’ that someone will offer some kindness - in respect of those before us that did the same - thank you thank you to those who I hope know who they are.
What is the recommended way to financially support
- the developers of opencart core
- the supporters in the forum
?
Cheers
Rolf
aware of, that Community Support has a meaning, and only depending on
others, without ever giving something back, is just not, what makes a place
like this beeing worth it's name.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: No registered users and 79 guests