Phoca cart catalogue language

Phoca Cart - complex e-commerce extension
lecoq.fr
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 13 Apr 2021, 17:27

Phoca cart catalogue language

Post by lecoq.fr »

Hello

I'm looking to create a catalogue for our association (old car spare parts) .
I started to edit the catalog.php file but the language remains in en-GB while Joomla is configured in fr-FR. I forgot something or is it a bug ?
All the other parts of Phoca Cart are correctly displayed in french. (I edit a file fr-FR.com_phocacart.ini to have an almost complete French translation )

thanks for your help

Joomla : 3.9.14
Phoca cart : 3.5.6
Phoca Cart Cart Module 3.5.5
Phoca PDF 3.0.11
lecoq.fr
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 13 Apr 2021, 17:27

Re: Phoca cart catalogue language

Post by lecoq.fr »

No more problem... this morning ! I don’t understand what happened!

Next bug : the software "multilanguageCK" does not work for the catalog !
lecoq.fr
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 13 Apr 2021, 17:27

Re: Phoca cart catalogue language

Post by lecoq.fr »

Ok I added a patch on multilanguageCK to test "phocacartcatalogs"

if ($option == 'com_phocacart' && ($view == 'phocacartorderview' || $view == 'phocacartreports' || $view == 'phocacartcatalogs')) {

so now multilanguageCK works well for HTML/Raw files !

I added different CSS for each format on catalog.php . (I can adapt the CSS according to the different formats)

Next problems are with PDF files :
1) The event onAfterRender is not trigged by PhocaPDFRender therefore {} symbols always appear in the title
2) No picture displayed

I continue my investigation...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca cart catalogue language

Post by Jan »

Hi, thank you for the info, I will add teh catalogs view to next version.

Yes, it is possible that the PDF cannot be active in some events :idea: :-(

Jan
If you find Phoca extensions useful, please support the project
lecoq.fr
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 13 Apr 2021, 17:27

Re: Phoca cart catalogue language

Post by lecoq.fr »

After a few hours of searching I still can’t solve the problem. This is beyond my skills... I'am sure there is a bug, but where ? I will try to copy/paste part of MultilanguagesCK.php (onChangeText() ) on Catalog.php. We’ll see, hope lives!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca cart catalogue language

Post by Jan »

It doesn't always have to be a bug. It can be even caused by ordering or running the events. It can even happen, that the event to translate the language is running after the event to render the PDF - so the translation plugin has no chance to translate before rendering the PDF :idea:

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