• Resolved angalsl

    (@angalsl)


    In this website we are working with Elementor. I placed the form widget not as a shortcode as it’s said in the documentations, but it seems to not work as intended. I tried looking for any console errors or errors from server, but theres none.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    Thanks for sharing the link of the website where you’re working on. We see the Search Form widget in the home page, which is good, because Shortcodes should never be published on your home page, only widgets/blocks should be there.

    As you also noticed, everything is working fine, there are no JavaScript errors. The only issue is how the widget was set up, and how the parameter “Page” was left empty. This results into an invalid form action, hence into a landing page that isn’t connected to any Shortcode.

    All you need to do to fix the issue is setting up the Shortcodes through the plugin VikRentCar from the apposite wp-admin page, and make sure to link your Shortcodes to a corresponding page by using the apposite button. You could also do that through the native Gutenberg block that comes with all our plugins. Also, we suggest setting up at least a few types of Shortcodes: Search Form, Cars List and Order Details. This will ensure all URL routing functions to work properly.

    Once your Shortcodes have been set up, edit the settings of the widget in your home page through your preferred page builder plugin, and make sure to select a value for the drop-down menu “Page” by selecting one previously created Shortcode. This will determine the action URL of the search form widget in your home where the booking process will start.

    We hope this helps!
    The VikWP Team

    Thread Starter angalsl

    (@angalsl)

    The problem is that i dont seem to have any page to add to the widget, even though it is assigned on other forms. How can I solve this?

    Plugin Author e4jvikwp

    (@e4jvikwp)

    If the settings of the widget “Search Form” in your home page do not display any option under the “Page” drop-down menu, then it means there are no active Shortcodes configured in the main plugin VikRentCar.

    You can create Shortcodes and add them to pages in two different ways:

    1. By using the Gutenberg apposite block type called “VikRentCar Shortcode” that will let you create and add a Shortcode to a new page.
    2. By using the apposite wp-admin section of VikRentCar. You will find the “Shortcodes” button in the top toolbar of the page Dashboard. From this page you can create a new Shortcode, and then manually assign it to a page by using the apposite red button.

    Once you will have configured some Shortcodes, the settings of your home-page widget will let you choose a valid option from the drop-down menu, and the form action will work correctly.

    Please notice that we suggest creating at least 3 types of Shortcodes in VikRentCar: Search Form, Cars List and Order Details. This will ensure all URL routing functions will work correctly.

    The VikWP Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.