Multilanguage Countries

Phoca Cart - complex e-commerce extension
Alexander
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 15 Jan 2020, 17:36

Multilanguage Countries

Post by Alexander »

Hi Jan and Benno

I installed vanilla Phoca Cart 6.1.8 in a Joomla 6.1.3 PHP 8.5.9 environment on my test server.

I imported world countries which are in English with Publishing Options -> Language All.

I translated some countries in German and gave the English versions (e.g. Switzerland) Publishing Options -> Language EN and the German versions (e.g. Schweiz) Publishing Options -> Language DE.

Unfortunately, the Country Dropdown in the address of the Phoca Checkout did not care about the published languages, it just shows the complete country list, DE, EN and ALL.

Any help?

Kind regards and thank you
Alexander
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49616
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multilanguage Countries

Post by Jan »

Hi, unfortunately, there is no Phoca Cart native multilanguage feature for countries, so e.g. some specific plugin like Multilanguage CK (Phoca Edition - can be downloaded here: https://www.phoca.cz/download/99-phoca- ... -component )

Then you can add more language variants to one row, so for each language site, specific language is displayed:

Image

Jan
If you find Phoca extensions useful, please support the project
Alexander
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 15 Jan 2020, 17:36

Re: Multilanguage Countries

Post by Alexander »

Hi Jan
Great, I use Multilanguage CK since years. I did not expect that it works in the Countries.
Thank you!
Alexander
Alexander
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 15 Jan 2020, 17:36

Re: Multilanguage Countries

Post by Alexander »

Hi Jan
It works and looks perfect on the web pages, but in the html Invoice I get the full {langck= ...} line.
Alexander
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49616
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multilanguage Countries

Post by Jan »

Hi, which plugin and plugin version do you use? The one (modified) which can be found here:
https://www.phoca.cz/download/99-phoca- ... -component

should solve it, testing now, everything is OK:

Image

Image

Jan
If you find Phoca extensions useful, please support the project
Alexander
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 15 Jan 2020, 17:36

Re: Multilanguage Countries

Post by Alexander »

Hi Jan
Sorry for the late answer, I was on holidays.

I use the phoca multi language check and I still get in the order pending html email:

Peter Muster
Strasse 4
9000 St. Gallen
{langck=en-GB}Switzerland{/langck}{langck=de-DE}Schweiz{/langck}

I tried to order the multilanguage plugin first and last, no change.

On the other hand, it works in the Phoca PDF Plugin, I get Schweiz.

But!!! in the PDF I don't get the information I put in the German order email template.

Any help would be much appreciated.

Alexander
GrahamW_1968
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Oct 2026, 08:42

Re: Multilanguage Countries

Post by GrahamW_1968 »

Bit of a lurker here, and I dont use Phoca Cart myself, but this one has got me curious... I reckon the raw {langck=...} tags in the email might be because the plugin only runs when a proper page gets rendered, and the email is built behind the scenes so it never gets a look in. That would definately explain why the web pages and the PDF come out fine but the email doesnt, though I could be miles off, mate.

Does anyone know if Multilanguage CK actually hooks into the page output, or does it work on the content itself before it gets sent anywhere? Cheers.
Post Reply