• Resolved felixworen

    (@felixworen)


    Hi!

    I know this sounds weird but I would like to hide the prices of the rooms. I could just go in and set display: none; on all price-related elements, but that sounds like a bad practice. Is there any better way for doing this?

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

    (@e4jvikwp)

    Hi!

    I understand your request, but unfortunately we are afraid that one single solution won’t be sufficient to completely hide the prices in the front-end.

    As you know, in order to allow the booking process, in Vik Booking it is necessary to define a cost for each room and for each number of nights of stay. You can do this from the page Rates Table of the wp-admin section. This feature mainly serves to support the LOS (Length of Stay) Pricing Model for those who need it, but it is also suited for a more common Per-Day Pricing Model.
    That said, one solution would be to specify the base costs per night as 0.00, but I’m not sure this is actually what you want.

    Another solution is to disable the booking process from the Configuration page, you can find this setting among the first ones listed in the first tab of that page, and from the edit page of each room, you can enable the option to request information. This way, rather than collecting bookings, you would receive booking/information requests for a specific room. Of course, this would require a Shortcode of type Rooms List so that your visitors can find the request information form in the respective room details pages.

    The last solution is to literally hide or remove the prices displayed on all front-end pages and email notifications. Luckily, pretty much all prices are wrapped within the same HTML class attribute to facilitate the Currency Converter widget to exchange them into other currencies. If you use your browser inspector tool, you will see that this class is called “vbo_price”, and so by editing the apposite CSS file for the customization (from the Configuration page) you could define a rule similar to:

    .vbo_price {display: none;}

    However, this is not sufficient for the email notifications, and so here it would be necessary to also edit the apposite template files from the Configuration page and maybe add similar CSS rules if you don’t want to override the PHP code.

    We do not really recommend to hide the prices and keep allowing the booking process, but if this is what you need to do, then these are the options available.

    We hope this helps!

    The VikWP Team

Viewing 1 replies (of 1 total)
  • The topic ‘Booking without showing the price’ is closed to new replies.