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 18 replies, has 2 voices.

Last updated by rachaelE 1 year, 1 month ago.

Assigned support staff: Marcel.

Author Posts
May 20, 2019 at 3:15 pm #3848255

rachaelE

PS Motopress's answer is wrong - they say there is a different shortcode ID for each language pagr, but there is not - when you hover over it, it is the same ID for each language. Their answer does not make sense.

May 20, 2019 at 3:25 pm #3848307

rachaelE

PPS: the one that you have added to the test page: hidden link without ID, doesn't actually work - it shows the calendar picker, but when you click search, it just refreshes the page - so also does not work.

May 20, 2019 at 4:27 pm #3848925

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

After refreshing the page, the generated JS is invalid. Please open your Browser DevTools over F12 and check the following errors:

#1 Your shortcode

Uncaught ReferenceError: jQuery is not defined
    at (index):14
(index):175 Uncaught TypeError: $ is not a function
    at (index):175

#2 On the search form we have now an invalid statement

Uncaught ReferenceError: jQuery is not defined
    at ?mphb_check_in_date=20%2F05%2F2019&mphb_check_out_date=22%2F05%2F2019&mphb_adults=1&mphb_children=0&mphb_check_in_date=2019-05-20&mphb_check_out_date=2019-05-22:14

mphb_check_in_date=20%2F05%2F2019&mphb_check_out_date=22%2F05%2F2019&mphb_adults=1&mphb_children=0&mphb_check_in_date=2019-05-20&mphb_check_out_date=2019-05-22:172 Uncaught TypeError: $ is not a function

This happens only when the date fields are displayed only once on your site: hidden link

These errors happen only on your site and I can't reproduce them. The date picker is correctly working on one of them, so there is everything from WPML compatible.

I would recommend the following as I know you need to go live fast:

#1 Reinstall the booking form. If you want to test this first on a test installation, I provided you with a site copy here hidden link. As it's a site duplication, the user credentials are the same.

#2 Try to contact MotoPress again. They should confirm the answer from 2nd Tier/3nd Tier or Development team. Or ask them to access your site.

#3 If you didn't find a solution I would recommend you to contact a certified WPML expert who will find an individual solution for your problem. They can fix the JS errors on your site too -> https://wpml.org/contractors/

I hope I can help you with this.

Best Marcel

May 20, 2019 at 8:20 pm #3850039

rachaelE

My issue is resolved now. Thank you!