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
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
My solution for multilanguage products
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: My solution for multilanguage products
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: My solution for multilanguage products
Ok, the code will be:
and it must be moved to line cca 589
so even the documents (invoice, delivery note, receipt) will listen to the system plugin.
Please test and let me know.
Jan
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));
Code: Select all
after switch ($emailSendV) {
...
}
Please test and let me know.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 18
- Joined: 05 Jun 2018, 13:10
Re: My solution for multilanguage products
Awesome Jan! That worked like a charm
You're the best
You're the best
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: My solution for multilanguage products
Ok, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project