My solution for multilanguage products

Phoca Cart - complex e-commerce extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: My solution for multilanguage products

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: My solution for multilanguage products

Post 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
If you find Phoca extensions useful, please support the project
PixelZombie
Phoca Member
Phoca Member
Posts: 18
Joined: 05 Jun 2018, 13:10

Re: My solution for multilanguage products

Post by PixelZombie »

Awesome Jan! That worked like a charm 8)
You're the best :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: My solution for multilanguage products

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply