Sauter la navigation

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum French. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Marqué : 

Ce sujet contient 9 réponses, a 2 voix.

Dernière mise à jour par Johan Il y a 1 an et 2 mois.

Assisté par: Johan.

Auteur Articles
janvier 24, 2023 à 6:56 pm #12884509

Pichinov

Je tente de : supprimer la langue Suisse de mon site avec nettoyage de la base de données. J'ai du cliquer à plusieurs reprises car le retour sur la page langue m'indique qu'il ya toujours des données en base.

URL de (mon) site Internet où le problème apparaît : lien caché

Je m'attendais à voir : Une suppression propre

À la place, j'ai obtenu : un gros pb car toutes mes commandes sont repassées en status en attentes et ce autant de fois que j'ai tenté de nettoyer la base. Le site Ecommerce est en maintenance.

janvier 24, 2023 à 7:37 pm #12884645

Pichinov

Vous trouverez ci-joint les screenshot qui montre le change de status 3 fois de terminé en attente.
Aussi les infos de la suisse sont toujours présentes malgré les 3 tentatives de suppression de la langue en BD.

Je ne peux pas attendre trop longuement car le site ecommerce doit être relancé.

Merci de votre retour.

Issue WPML Delete Language 3.png
Issue WPML Delete Language 2.png
Issue WPML Delete Language 1.png
janvier 25, 2023 à 12:03 pm #12889645

Johan

Bonjour,

Merci, dans un premier, j'aimerais que vous suiviez à nouveau la procédure pour supprimer une langage de WPML, pour être sûre que vous avez suivie la bonne procédure et ensuite, nous traiterons le souci de commandes qui est venue s'ajouter.

voici comment. s'assurer de ne plus avoir une langue secondaire sur votre site .:

La procédure correcte devait être la suivante :

- Vous deviez d'abord supprimer définitivement tout le contenu de la langue (articles, images de pages de la bibliothèque, éléments de taxonomie tels que les tags et les catégories, etc...).

- Désactiver la langue dans WPML > Langues

Ensuite, vous pouvez aussi exécuter une requête dans votre base de donnée :

DELETE FROM `wp_icl_translations` WHERE language_code = 'ch';

Je pense que le code pour la Suisse est CH, à verifier. cette requête va juste supprimer la référence que nous avons des différents contenus sur les langues actives et inactives sur votre site mais elle ne supprimera pas son contenu. Donc il est important de faire les étapes mentionnées avant.

Pouvez-vous essayer ce que j'ai mentionné à la place et voir si le problème est résolu ?

--------------------------

Merci de faire une sauvegarde de votre site avant !

Faire une sauvegarde : IMPORTANT: Veuillez noter qu'une sauvegarde est nécessaire pour des raisons de sécurité, et pour éviter toute perte de données, vous pouvez utiliser le plugin https://wordpress.org/plugins/updraftplus/. Notez que si ce plugin ne fonctionne pas vous pouvez en utiliser un autre, ceci n'est que une suggestion!

janvier 28, 2023 à 12:31 am #12907273

Pichinov

Bonjour

Pardonnez moi mais je n’ai pas le temps de passer derrière tous les produits et pages et post pour supprimer toutes les infos. Aussi ce n’est pas ce qu’indique la documentation. Si c’est le mode de fonctionnement ce n’est pas possible et c’est ingérable.

Déplus Il est possible depuis l’interface de faire un delete de tous les posts.

De plus nous sommes une agence qui traite des e-commerces et nous ne pouvons pas avoir un délai aussi long pour avoir ce type de réponse. Pour info nous gérons plus d’une 10zaine de sites avec WPML. Avez vous d''autres solutions?

Entre temps nous ne pouvons pas attendre donc nous avons remis à jour le site en ligne avec un backup mais nous pouvons vous laisser un staging pour faire vos tests.

Bien à vous

José MARTINEZ
Président PICHINOV
+33 6 14 18 69 22

janvier 28, 2023 à 12:31 am #12907277

Pichinov

Hi there

Could I get an answer on this as we are still trying to clean our customer ecommerce site and we are unclear about the process to pursue despite the issue?
Also could you please give us a link on your documentation that explains the process?

Another question when the native language is french and someone is sending us an order in english, what are the product ID that are supposed to be displayed in the order French Ids or Englishs’one in the back office and also stored in the database?

If the BackOffice is in French, am i supposed to get French ids or the english ones? We are asking this as we are seeing some instability in the Product id used.

Thanks

José MARTINEZ
Président PICHINOV
+33 6 14 18 69 22

janvier 29, 2023 à 2:20 pm #12912931

Johan

Hi,

here is documentation about how to delete content in another language that you no longer need on your website :

https://wpml.org/faq/how-to-completely-remove-a-language-from-your-site/#:~:text=Go%20to%20WPML%20%E2%86%92%20Languages,secondary%20language%20from%20the%20database.

Some tickets where people have faced the same issue as you and my colleagues replied the same thing as I suggested to you in my first answer :
- https://wpml.org/forums/topic/deleted-languages-from-database-but-still-cant-remove-language-completely/

- https://wpml.org/forums/topic/how-to-completely-remove-a-language-you-no-longer-use/

About the product id, I will need to have further details. I assume each product have an ID, even the translated ones so if the order is made in English then the ID should be a specific one, as it is a translated product. What I mean by that is that each product has a specific ID, even when they are translated.

If you could give me more context about the plugin you are using or some screenshots that would be helpful

thanks.

janvier 31, 2023 à 1:12 am #12925561

Pichinov

Hi Johan,

Thanks for your solutions. The solution I used as been the first link on your last comment. I believe that killed and reset all my orders to a wrong status even if orders where terminated.
Could you please tell in whicj table (or tables) the code (that cannot be changed) is stored? Is it store outside of the database as I have been playing in a dev site to change the value without success thru phpmyadmin. This is strange behavior as everything is store in the database.

Concerning the orders, I beleive I perfectly understood that each product has several ids. One for each language.
Knowing FR is the default Language.
Question are : if I got an order in UK from a UL user, and I am a FR admin, the Ids used will be the UK ones or the FR ones in my admin WooCommerce page?
If I am the UK user, I will get UK ids but if I switch to FR, what will I get FR Ids or UK ids in front page?

Regards

Jose

janvier 31, 2023 à 11:40 am #12929195

Johan

hi,

Could you please tell me in which table (or tables) the code (that cannot be changed) is stored? Wish code are you talking about?

Question are : if I got an order in UK from a UL user, and I am a FR admin, the Ids used will be the UK ones or the FR ones in my admin WooCommerce page?
If I am the UK user, I will get UK ids but if I switch to FR, what will I get FR Ids or UK ids in front page?

I'm not sure about your question, I encourage you to test it. If you want we can make a test with a sandbox and try to answer your question there.
here is a sandbox: lien caché

- Could you please create 2 products
- Translate them
- Order them from 2 different front pages ( i guess when you are talking about users you are talking about the front page?

thanks

janvier 31, 2023 à 9:55 pm #12933509

Pichinov

Hi Johan

It will be great if you look at your documentation to understand what means code that cannot be changed.
In our side to cover your bugs, we consume more than 4 days as your solution crashed an entire woocommerce web site to reset all the orders even with a backup.
https://wpml.org/faq/how-to-completely-remove-a-language-from-your-site/#:~:text=Go%20to%20WPML%20%E2%86%92%20Languages,secondary%20language%20from%20the%20database.

So my first comment is : when are you planning to fix your bugs? And to consider your customers not as testers and taking care of them? This is quite strange to get your questions as your are normally supposed to be the experts of your solution if I am not wrong. Here is a screenshot of the language page to help your understand the language code that cannot be changed.
In the meantime, I am glad that you sent me the other ways to delete a language showing that we have to workaround your delete bug issue with a tone of extra work. This is not a professional solution. Is there someone working on the issue? Or do I have to send my invoice of my engineers working for free to fix the damage issue? By the way we fixed it the sw versus ch language without deleting anything going thru de database and cleaning wpml cache fyi.

Just to relax, my question is not to test anymore on the behavior of your solution. I just need an explanation on how it works with orders, product with attributes and variants and their respective ids. Customer C in UK selected , Admin A in FR selected. How the order is supposed to be in frontend and backend? C is selecting FR, what is happening? A is selecting UK what is happening. Do you have a documentation on the way it works?

Another things we discovered is the backend performance with and without WPML. When are you fixing this bug too?

Best Regards

Jose

WMPL Language.png
février 2, 2023 à 8:26 am #12944529

Johan

Hi,

1/
I don't understand your question regarding the bug, I don't see that as a bug but more as a limitation if you are talking about not changing the code.

To fix a bug we need to replicate the bug on a clean installation for example, as the one that I've forwarded to you, but you need to explain step by step what you are doing.

2/ regarding the Orders : How the order is supposed to be in frontend and backend?
=>

First orders are not seen in the front end but only for you as the result of confirmation of a purchase of a product.

Then are you talking about ID orders or ID products?

You have to just understand when order is made in English he has a specific order number "commande numero 1".

When the order for the same product is made in the french language. The he will have a different number "commande numero 2".

If you change the language in the admin, well you will only see all the orders made in the french front end, and the same for the English.

Im not sure if I have replied to your question. The best is to try on the sandbox I have forwarded to you, have already installed wpml, and created a product with attributes as well. You can just install a payment gateway and we can try with a test credit card. That would be better for both of us to understand because you are asking me to detail a workflow of order without a concert example.

Thanks,

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.