Display 15% of the current price on the page

Hi
How can I recover the current booking price on the booking page? I need to display 15% of the current price on the page. Can I use PHP code Snippets and call a function? and if so what function? Thank you

[image]

Hi,

Please provide more details about the page in mind (e.g. booking confirmation page, etc.). Also, on the booking page itself after creation, should the order URL be displayed or do you need to add the price itself without the URL?

The page is the listing. I need to retrieve the price value (which changes when choosing dates and add-ons) to show on the same page 15% of the value obtained with a php command. I only need it for information purposes for the customer so that he can see (in addition to the rental total) what he will pay on our site. I hope I have described the request well. Thanks

Hi,

It’s possible, but requires code customizations. Please try using a code snippet similar to this one Disable price calculation - #5 The “is_rest” check passes when there’s a calculation on the listing page (when the booking form fields are changed). This way you can change the price field value and appearance depending on the conditions.

Hope this helps