• Resolved webotmane

    (@webotmane)


    When visitors are browsing my car rental website in French and click the “continuer” or “search” buttons on the homepage (“accueil”), the site processes their request correctly but automatically switches back to English (my default language). Interestingly, the same buttons on the “nos voitures” (Our Cars) page work perfectly and maintain the French language selection

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for posting the link to the page showing the issue where the language is reverted back to English.

    All widgets/blocks come with a setting that allows you to select the form landing page, hence the action of the form itself. More precisely, your French page “Accueil” is using the widget/block of type “VikRentCar – Search Form”, but the settings for such widget/block that was published on this page for French, are still pointing to an English page.

    The page “Accueil” when French is the active language is available at the link /fr/rent-a-car-tangier-airport-francais but when filling the dates and clicking the Search button, users are taken to /our-cars, which is an English page that uses a Shortcode of VikRentCar of type “Cars List”. However, as you also said, there’s a French version of the same page/Shortcode called “Nos Voitures” which is available at the link /fr/nos-voitures.

    For this reason, it is sufficient to edit the page /fr/rent-a-car-tangier-airport-francais by changing the settings of the widget/block “Search Form”. The settings to choose the landing page (called “Page”) should simply be set to “Nos Voitures” so that the whole booking process will keep the active language, French in that case.

    Right now the Search Form widget/block in the French page is pointing to an English page, and that’s why you’re seeing an unwanted switch of language.

    We hope this helps!

    The VikWP Team

Viewing 1 replies (of 1 total)

The topic ‘Polylang Language Switcher Issue With Button Actions’ is closed to new replies.