Skip Navigation

[Resolved] Unable to read data from the original language post with HBOOK plugin

This thread is resolved. Here is a description of the problem and solution.

Problem: I use the HBook plugin on a multilingual site. Some custom fields like max occupancy, starting price and some others do not appear in secondary languages. The field values appear in the primary language.

Solution: Use WPML's Translation Management plugin to help translate custom field values. Note that HBook requires several post updates to access the custom field values - this is not something Toolset or WPML can control.

This support ticket is created 5 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 10 replies, has 2 voices.

Last updated by fabriceS 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1154685

Hi

I installed a plugin for vacation rental called HBOOK.

It is supposed to work with WPML/Toolset but I have issues to retrieve data from the original language post.

HBOOK works with "Accommodations". For each accommodation, some data like max occupancy, starting price and some others are defined in the post in the original language (in my case in French). Their engine is retrieving the data from the "French original version" when it calculates the rental cost in English (for example). Until there it works fine.

In Toolset "fields and view" I can retrieve my custom fields value with no problem. There is an option called "Load non-Types custom fields" that allow to read the values of my HBOOK variables. This works fine in French (original) but when I try to load the values in my translated pages, no value is found.

Is there a way to solve this issue ?

Thanks a lot.

#1154881
Screen Shot 2018-11-28 at 2.51.27 PM.png

Hi, can you tell me if these fields are marked "Don't Translate", "Copy", "Copy once", or "Translate" in the Accommodation edit screen?
If you choose "Copy", do the fields show up as expected in secondary languages?
Which Translation Editor are you using for WPML - Advanced or Classic?

#1154901
Screen Shot 2018-11-28 at 21.37.27.png

Hi Christian,

Thank you for your reply. However I do not see this part of the screen...
I have the 3 choices not translatable/translatable/appear as translated, but not the following part...
Maybe you can see more info in the screenshot I attached...

#1154937

Please go to Accommodations and edit one of your Accommodations posts (in the default language). Scroll down to Multilingual Content Setup. This is where you will find the field translation settings in my screenshot.

#1154939
Screen Shot 2018-11-28 at 23.10.42.png
Screen Shot 2018-11-28 at 23.11.00.png

Maybe that's the issue... I do not have this part of the interface...
Only the basics of WPML have been installed. Maybe this is where the issue is ?
I attach 2 screenshots. I hope it can helps to investigate...

#1154959

Ah yes, the WPML Translation Management plugin should be installed and active in order to see this part of the interface. Please try that and let me know the results.

#1154963

It seems to work even if doesn't seem "that" smooth... It seems it takes some time to update the values in the DB, but it works.
Thanks a lot for your help !

#1155574

Yes, it seems like the Hbook plugin requires that you save some data, then refresh the page, then save some more data, then refresh the page...it's difficult but it is functional.

#1155596

yes, not the easiest 😉
Thank you for your help !

Have a good day.

Kind regards,
Fabrice

#1155701

Great. If you're all set, please mark this ticket resolved.

Best regards, Christian

#1158024

My issue is resolved now. Thank you!