Page 3 of 3

Re: My solution for multilanguage products

Posted: 19 Jul 2018, 13:59
by Jan
Hi, there is no problem to extend the subject, but the payment title is a part of the output (set in order layout). If the payment title will not work, then it will not work the shipping title and other parts but it is not possible to set every variable to listen to system plugin, this will take a lot of memory :idea:

EDIT - yes, all the items are not translated, so it must be whole set, I will try to see it if this will be possible.

Jan

Re: My solution for multilanguage products

Posted: 19 Jul 2018, 14:19
by Jan
Ok, the code will be:

Code: Select all

JPluginHelper::importPlugin( 'system' );
$dispatcher = JEventDispatcher::getInstance();
JPluginHelper::importPlugin('plgSystemMultilanguagesck'); 
$dispatcher->trigger('onChangeText', array(&$subject));
$dispatcher->trigger('onChangeText', array(&$subjectOthers));
$dispatcher->trigger('onChangeText', array(&$body));
$dispatcher->trigger('onChangeText', array(&$bodyOthers));
and it must be moved to line cca 589

Code: Select all

after switch ($emailSendV) {
...
}
so even the documents (invoice, delivery note, receipt) will listen to the system plugin.

Please test and let me know.

Jan

Re: My solution for multilanguage products

Posted: 22 Jul 2018, 02:04
by PixelZombie
Awesome Jan! That worked like a charm 8)
You're the best :)

Re: My solution for multilanguage products

Posted: 30 Jul 2018, 16:09
by Jan
Ok, great to hear it.

Jan