Multilangages CK et PhocaCard Catalogue

  • Ric
  • Ric's Avatar Offline Topic Author
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 0

Multilangages CK et PhocaCard Catalogue was created by Ric

Posted 3 years 3 days ago #60489
Bonjour à tous
J'utilise MultilanguagesCK avec une grande satisfaction depuis quelque temps. Aujourd'hui j'essaye de configurer la génération d'un catalogue produit via PhocaCard (3.5.6) . Alors que pour tout le site, PhocaCart inclus, les traductions se passent très bien la génération d'un fichier catalogue html ou pdf ne filtre pas les {} je me retrouve avec l'affichage de {langck=fr-FR}Français{/langck}{langck=en-GB}French{/langck} au lieu de Français ou French.
Une idée ou je pourrais regarder ?
Merci
Joomla : 3.9.14
Last Edit:3 years 3 days ago by Ric
Last edit: 3 years 3 days ago by Ric.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Multilangages CK et PhocaCard Catalogue

Posted 3 years 3 days ago #60490
Salut
essaie d'éditer le code du plugin
plugins/system/multilanguagesck/multilanguagesck.php
ligne 34 à 36, commente ces lignes
Code:
// if ($doctype !== 'html') { // return; // }
regarde si ça résout ton souci
CEd

Joomlack Webmaster and Developer

Last Edit:3 years 3 days ago by ced1870
Last edit: 3 years 3 days ago by ced1870.
The following user(s) said Thank You: Ric

Please Log in or Create an account to join the conversation.

  • Ric
  • Ric's Avatar Offline Topic Author
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 0

Replied by Ric on topic Multilangages CK et PhocaCard Catalogue

Posted 3 years 3 days ago #60492
Impeccable ! en analysant les diverses variables il apparait qu'un nouveau type de view a été créée j'ai juste ajouté dans la condition "phocacartcatalogs" et ça marche, j'aime bien les miracles :unsure:

// PHOCAEDIT
if ($option == 'com_phocacart' && ($view == 'phocacartorderview' || $view == 'phocacartreports' || $view == 'phocacartcatalogs')) {
// Exception for order, invoice, delivery note
// can be in admin
// can be even PDF

Encore merci car sans cette piste j'y étais encore dans quelques mois :) :) :)
by Ric

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Multilangages CK et PhocaCard Catalogue

Posted 3 years 3 days ago #60501
content que tu y sois arrivé :)

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

  • Ric
  • Ric's Avatar Offline Topic Author
  • New Member
  • New Member
  • Posts: 4
  • Thanks: 0

Replied by Ric on topic Multilangages CK et PhocaCard Catalogue

Posted 3 years 2 days ago #60513
La partie génération du HTML étant réglée j'attaque le PDF.
L'interprétation de la partie CSS n'étant pas la mème j'ai fait évoluer catalog.php, mais la fonction onAfterRender de plgSystemMultilanguagesck (je découvre le php, c'est un autre monde :blink: ) n'est pas appelée je ne vois qu'un appel à \JFactory::getApplication()->triggerEvent('onAfterRenderModules', array(&$buffer, &$params)); donc pas de traitement post génération et présence des {} . Est ce la même chose je me perds dans tous ces event, callback et autres... ?
by Ric

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Multilangages CK et PhocaCard Catalogue

Posted 3 years 2 days ago #60514
c'est joomla qui appelle les plugins system lors de la création de la page
as-tu bien commenté les lignes de mon plugin comme je te l'ai proposé ?

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.725 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 776 guests and no members online