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

    (@e4jvikwp)

    Thanks for your message. You can use the “Overrides Manager” tool in the configuration page of VikRentCar to clone the existing “View” for the login/registration page, and work on a copy of the template file. This way, by installing future updates, your changes will not go lost.

    Using the overrides is the best technique to apply customization to existing pages and contents. You can change the whole layout of that specific page, and you can even add redirections through PHP or JavaScript code.

    We hope this helps!
    The VikWP Team

    Thread Starter aquariusadolescent

    (@aquariusadolescent)

    sorry vikrent team. but i am not a pro php/html coder. i just only know using WP. i am learning WP by self, google & youtube. a guest need to login or signup before placing order. so i need to change/redirect guest user to my created login page ‘localhost[dot]dcr[dot]login’ in place of default login. and after login he will be redirected to placing order.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    We understand the situation, but if you don’t want to use the default sign in/sign up functionalities of our plugin, then the only way to safely change the default behaviour, is to use an override for that page in VikRentCar. By adding a redirect command to a precise URL, either through PHP or JavaScript, you will be able to use your preferred login page rather than the default one. This should be faster than modifying the source code of the default login page of our plugin completely.

    Alternatively, we can suggest to protect the pages where users could start the booking process. This way you would not need to override any page of VikRentCar, because the search/booking form would only be displayed to registered and logged in users. This is something you could achieve through the WordPress native functions for protecting a specific page.

    Thread Starter aquariusadolescent

    (@aquariusadolescent)

    dear vikrent team, if i would know coding i would have done. But try to understand i only know designing wp by themes and plugins. If i mail you will you please help me with the code that i can replace/insert as per your guidance. Please help.

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi,

    We usually do not provide support for code customization, but if you just need to add a redirect command to a different URL inside a default View/page of our plugin, then we can probably help you if you get in touch with our team through our website.

    The thing is that if you need to apply some customization to the plugin, then you may need to consult or hire a developer, especially because the native page of our plugin will redirect the user to continue the booking process after a successful login, instead if you apply a custom redirect to a different URL, then your users will have to select the rental dates again. This is why our initial suggestion of eventually protecting the pages of the booking process of our plugin was probably better than adding a redirection.

    Just for your information, if you use the “Overrides Manager” tool in the Configuration page of VikRentCar, you can customize the desired page, for example the one that shows the login/sign up form, and right after the first line of security code that ensures the file is being executed by WordPress, you can use the following PHP code example to apply a redirection to a custom URL:

    VikWPFactory::getApplication()->redirect('https://yourwebsite/url');
    VikWPFactory::getApplication()->close();

    This is probably the most we can do to help you achieve the desired customization. Otherwise, as suggested above, you should probably consult a developer.

    We hope this helps!
    The VikWP Team

    Thread Starter aquariusadolescent

    (@aquariusadolescent)

    Thanks Mage Team 👍,

    Thanks for your help and support.

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