I have a 25% booking commission set up for my client. For the example, in Pic 1 I set the price to $60 and when I select the date the price increases $75 as the commission fee is calculcated and added see Pic 2. However, what I would like is to still show the initial price ($60) while the commission is still added behind the scene and they only see the commission feee on the checkout page which it is right now.
Maybe you can provide a code snippet I can use or point me to the corresponding template/file
I see. We will consider how to improve this. Currently, there are two workarounds:
Add text to indicate that the amount is displayed with a commission.
You can also disable the calculation, but this will require a custom implementation. If you are familiar with coding, we can provide general recommendations.
Disabling price re-calculation so only the base price will be displayed (loaded when the listing page is opened) and the final price with all the details will appear in the booking form and checkout form. It’s possible if you remove the data-render attribute from the booking form HTML.
Substracting the commission amount when the price is calculated in background, if you’re familiar with coding you can try doing this via the hivepress/v1/models/listing/cart filter hook, it filters all the parameters before the listing is added to WooCommerce cart (before checkout), it’s also used for the price calculation. You can add a condition to ensure that it affects the price calculation only:
Can you point me to the folder where the booking form HTML file is, please?
All we want to do is keep the price unchanged while they are making the booking ( meaning not having the commission added and at the checkout page they will see that as the service fee).
Please try following the suggestions above, you can adjust the price via the filter hook. Editing the form HTML will not resolve the issue (and there’s no plain HTML file of the booking form, it’s rendered based on the plugin’s PHP configuration) because the price is refreshed via API when any of the form fields change.
If by keeping the price unchanged you mean showing the base daily price even if the form change, I can provide a snippet for this - let me know.
Sorry for the delay. It seems that it’s not possible via an external snippet at the moment, please delete likes 54-59 in this file as a temporary fix Awesome Screenshot We plan to exclude fees/extras from the real-time calculation or at least indicate these separately in future updates.
I did this and now the add on services on the listings do not reflect on the listing price.
It works for removing the commission fee but it no longer adds the extras
Please provide more details regarding this issue (e.g., your actions step by step with screenshots, etc.). This will help us to reproduce and resolve the issue faster.