This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Shekhar Bhandari 5 months ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
May 15, 2019 at 2:39 am #3811591

paulC-65

Hi,

We are developing a new platform, which provides (amongst many other features) customers with an Online Booking widget to place on their own website. This widget makes a call on our booking system and displays the results in an iframe on the customer’s website (for the website and not the entire customer’s site). We'd like to offer this as a feature, the ability to translate the booking responses and therefore offer a language switcher in the Widget. We which we would host the translations. Can you advise if this is feasible and if so, how should we approach the development?

Paul

May 15, 2019 at 5:10 am #3812289

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Welcome to WPML support. I'd be assisting you further on this issue.

So you are developing a feature which works like the following?

1) Customers add an online booking widget on their site.

2) The widget displays information from your site using an iframe.

3) Now you wanted to add an option so the user can choose language so you can filter the results according to in the iframe? Is this correct?

If this correct, you should first make sure the information that you are displaying on the iframe is translated. If it's properly translated, you can call to retrieve the translation on step #2 and display it accordingly on the frame.

You can know more about hooks and API here: https://wpml.org/documentation/support/wpml-coding-api/

Let me know if this helps.

Kind Regards,
Shekhar