I noticed that the admin can add extras to a specific booking, however, when the admin adds that, the total of the booking is not shown to the seller anymore.
Steps to reproduce
A client make a booking
Admin add extras in the admin view of books
Actual result
The total of the booking is not shown to the seller.
Expected result
The booking total is still shown to the seller after the admin adds extras.
This is the expected behavior since you added the extra after you made the booking. You need to add the extra right away so that the user can select it during the booking process, and then everything will work correctly. Also, note that extras in bookings is simply a “copy” so that if the order data is lost, it is clear what exactly was booked.
For me it is not clear, What do you mean by “You need to add the extra right away so that the user can select it during the booking process”? the extra services that the user can select?
This become a problem for my solution because I have an use case where I have to allow to the seller include some extra values based on the client/user notes in the booking. Also, We (as company) should include extra values after the seller include their own values, and only after that the user can pay.
We have an available price extras feature, and it will work correctly only after you select it when booking, we recommend that you review this documentation in more detail: How to enable price extras - HivePress Help Center
Yeah, I know that the client can select extra prices while booking, but I need a way that allows the seller to include extra prices based on the client notes in the booking, is there any way that I can replicate the admin view when the seller is going to approve the booking?
Yes, it may be possible to make the price extras (those copied to the back-end booking form when it’s made) editable on the front-end, but please note that this may cause issues (e.g. if these are edited after the payment is made). I recommend using the hivepress/v1/models/booking/attributes hook, this way you can customize the extras attribute (e.g. set the editable flag for it, this may make it editable but this requires further testing). Please check an example here, the snippet is related to the Requests extension but there’s a similar approach Hide the budget field from the request forms #hivepress #requests · GitHub