Salta la navigazione

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Questo ticket contiene 1 voce e ha 0 risposte.

>
Autore Messaggi
Luglio 18, 2023 a 1:23 pm #14059557

rosaP

Sto implementando un plugin di booking sul sito del cliente, che dichiara compatibilità con WPML (link nascosto), tuttavia sto riscontrando alcuni problemi.

Il plugin è Hotel Booking link nascosto ho acquistato la licenza pro.
Inoltre ho installato la loro estensione Hotel Booking & Divi Integration link nascosto

Inizialmente avevo reso le Accomodation types traducibili, e le avevo tradotte. Poi avevo creato, tramite il plugin "Hotel Booking & Divi Integration", vari template da associare a ciascuna Accomodation Type a seconda della lingua, come suggeritomi a suo tempo dal supporto del team della estensione acquistata. E funzionava il layout, avevo i 6 appartamenti tradotti correttamente in tutte e 3 le lingue. Se non che nella ricerca degli appartamenti dava alcuni problemi.

GUIDA configurazione Accomodation Types: link nascosto

Riscontrando dei problemi ho chiesto all'assistenza di motopress e Eugene mi han detto che le Accomodation Types devono essere settate come non traducibili, altrimenti il plugin non funziona e crea differenti disponibilità di alloggio per ogni lingua:

"First of all, for everything to work properly, you need to switch "Rates" to "Translatable" and add appropriate rate translations; check the second attached screenshot: link nascosto.

Second, accommodations, in their turn, should not be "Translatable", but they are. Here's why: the problem is that when accommodations are "Translatable" and actually have their translations, like in your case, it creates different property availability depending on the selected language on your page. For example, accommodations in English may have their availability, and accommodations in Italian and other languages may have their, different property availability. This is not how the system should behave unless you actually have different rooms for English and Italian guests.

So here's what needs to be done in order to resolve the issue: first of all, you will need to delete all accommodation translations. Then, make sure to empty the Trash on every language that you have (that's important). And once translations are deleted, you will need to navigate to the Dashboard > WPML > Settings > Post Types Translation section, find "Accommodations (mphb_room)" and switch it to "Non-Translatable" so the system can use the same rooms/physical units no matter which language is selected on the front end. Then everything should work properly."

Seguendo la guida fornitami dal loro supporto ho cancellato tutte le traduzioni di Accomodation Types e provato a creare ex novo "casa Berto". Poi ho reso traducibili le Rates e tradotte. Morale della favola continua a non funzionare e mi salta pure il menu lingue con le bandierine (vedi questa pagina link nascosto ).

Spero che possiate aiutarmi. Le lingue sono EN, IT DE. Il sito ora è settato in inglese come lingua principale.

Luglio 18, 2023 a 2:02 pm #14059901

rosaP

avevo capito male, lui parlava di accomodations e io invece ho lavorato sulla traducibilità delle accomodation types.