Skip to main content

Customization

How to customize the booking form field ?

At present we do not have any option to set them from the back end. So you will have to do a bit of customization on the rnb-data-provider.php and main-script.js files. Thanks & Stay Safe.

How to customize Cost Summary ?

There is no direct option to edit the cost summary. But you can change the title from the code. Just go to,

/wp-content/plugins/woocommerce-rental-and-booking/includes/Utils/data-provider.php

And search and replace the string.

How To Customize Email Template ?

To Customize Email Template edit these files,

/wp-content/plugins/woocommerce-rental-and-booking/templates/rnb/email

How to customize pricing flip box ?

To Customize Email Template edit these files,

/wp-content/plugins/woocommerce-rental-and-booking/templates/rnb/global/price-flip-box.php

How to hide From from the price label ?

If you want to hide the form, then you can do that by editing the plugin at

wp-content/plugins/rnb-reloaded/includes/Utils/global-functions.php

Form.jpeg

How to hide 0 Hours from all the places ?

Please edit,

wp-content/plugins/woocommerce-rental-and-booking/includes/CartHandler.php

And remove 0 Hours block

RemoveZero1.png RemoveZero2.png HoursRemoved.png

How to remove the category price label ?

Please edit,

wp-content/plugins/woocommerce-rental-and-booking/includes/CartHandler.php

and edit label for payable_cat

How to remove the resource price label ?

Please edit,

wp-content/plugins/woocommerce-rental-and-booking/includes/CartHandler.php

and edit label for payable_resource

Which file will be required to edit to add a custom field for the booking section ?

You can add a custom data template to this location,

templates/rnb/booking-content/

Please check pickup-datetime.php to get an idea,

After that, connect your custom content to WooCommerce single product hooks from this file,

includes/Utils/template-functions.php

And then manage and process data from this file,

includes/Utils/global-functions.php
includes/Order.php

And finally, handle validation and add data to the ajax from these files,

assets/js/main-script.js

How to remove the Pricing Info flip box ?

RemoveHooks.png

Please add this action hook on your theme functions.php

remove_action('rnb_before_add_to_cart_form', 'rnb_price_flip_box', 10);

How to change the order of rental components on a single product page ?

SingleProductOrder.png

Please change the action hooks priority from,

wp-content/plugins/woocommerce-rental-and-booking/includes/Utils/template-hooks.php

HooksPriority.png