# Zero base price with chargeable pricing extras

**URL:** <https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862>\
**Category:** Marketplace\
**Tags:** bookings\
**Created:** [November 19, 2024, 7:14am UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862 "2024-11-19T07:14:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbo](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/97f17d/32.png) [@robbo](https://community.hivepress.io/u/robbo)\
**Post date:** [November 19, 2024, 7:14am UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/1 "2024-11-19T07:14:27Z")

</div>

Hi,  
I’m modelling various listing pricing setups so that I can provide guidance to experts how to configure their listings based on their specific requirements.

I have the following 2 questions:

1. I have a scenario for a ‘Dog Walker and Pet Sitter’ business. As their different services are quite specific, there is no general base cost, all costs are derived from the extras as per the following screenshot:  
 ![image](https://community.hivepress.io/uploads/default/original/2X/a/a89bbd9f28d5ab4eb571452ca02d1bbd15b8508f.png)

All booking requests need to be pre-approved by the provider.

In the case of zero base costs, once the provider approves the request, the booking is set to ‘confirmed’, where this should go to ‘unpaid’ and the requester should be prompted to make a payment. If I change the base costs to a value \> 0, then the requester is prompted to pay for the base amount (x days) and the extras.

Q1: is it possible to create a service listing where the price is calculated based on the price of the extra items only, with a listing base price of 0, and where the requester is prompted to pay once the booking request has been accepted?

1. I have set-up extra listing attributes to capture the listing service description. The advantage of these text area attributes is that these allow for HTML formatting, where the default description field in the listing setup does not.  
The default description field is mandatory in terms of text entry.  
Q2: How can I hide this field (I assume display: none; ?) with avoiding the mandatory validation.

Thank you!

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [November 19, 2024, 11:36am UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/3 "2024-11-19T11:36:39Z")

</div>

Hi,

The easiest option is to simply set the price to 0 for booking, then everything will work as you described. Other options will require custom implementation.

As for the description, please check this topic: [Removing Title, Location and Description Box from Add Listing page](https://community.hivepress.io/t/removing-title-location-and-description-box-from-add-listing-page/8115)

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![robbo](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/97f17d/32.png) [@robbo](https://community.hivepress.io/u/robbo)\
**Post date:** [November 19, 2024, 2:26pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/4 "2024-11-19T14:26:01Z")

</div>

Thanks Andrii.

I have tested it again, however still with same result.

Scenario 1: base price is 1  
The flow is:  
Customer creates a request for 1 day, and selects an extra for 20/day  
Total price is 21.  
Request is submitted to provider for approval with status ‘Pending’. Request is approved, new status is ‘Unpaid’, and customer can pay for the request.

 ![Screenshot_2024-11-20-02-46-40-210_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/f/f2c04d345db03e9a55d90f3b63cfd52914f6eea4.jpeg)  
 ![Screenshot_2024-11-20-02-49-10-431_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/9/92ed5dba62e775028ee660931d72c344b85aff91.png)  
 ![Screenshot_2024-11-20-02-51-02-296_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/f/f1ba1276dfcb3073f1c5c879268d0d7440451b48.png)  
 ![Screenshot_2024-11-20-02-52-29-954_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/2/28b95d7d33fab96d1f88bf8bfa9b9848e3aa7a19.png)

Scenario 2: base price is 0  
The flow is:  
Customer creates a request for 1 day, and selects an extra for 20/day  
Total price is 20.  
Request is submitted to provider for approval with status ‘Pending’. Request is approved, new status is ‘Confirmed’, and customer is not prompted to pay for the request.

 ![Screenshot_2024-11-20-03-01-11-132_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/8/8e06b3e83ce07fe6bb241f066eae80288ad8664c.png)  
 ![Screenshot_2024-11-20-03-06-50-668_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/f/f7d64bad98e56d79af55582fd1587f8dc71e5dde.png)  
 ![Screenshot_2024-11-20-03-09-30-838_com.android.chrome](https://community.hivepress.io/uploads/default/original/2X/2/2136b1ca82537e12bcf4d6b362c8aaedcacf9d6d.png)

I obviously need the flow, with a base price of 0, to be as per scenario 1.

Can you advise how to do this?  
Thank you

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [November 20, 2024, 12:17pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/7 "2024-11-20T12:17:37Z")

</div>

Hi,

I see. We plan to add an update to fix zero price, or we will add tiers functionality [How to add pricing tiers - HivePress Help Center](https://help.hivepress.io/article/151-how-to-add-pricing-tiers), which may be more suitable for you than zero price. At the moment, you can wait for an update from our side, which we plan to do by the beginning of next month or later. Alternatively, we can provide you with a temporary fix on the site if you need it urgently.

Let me know which option is best for you.

---

<div class="post-metadata">

**Author:** ![robbo](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/97f17d/32.png) [@robbo](https://community.hivepress.io/u/robbo)\
**Post date:** [November 20, 2024, 7:35pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/8 "2024-11-20T19:35:47Z")

</div>

Thanks Andrii,

Can you provide the temporary fix?

Thank you

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [November 21, 2024, 9:56pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/10 "2024-11-21T21:56:59Z")

</div>

Hi,

I’ll share a temporary fix for the bookings with zero price issue within 24 hours or less.

Thanks for your patience

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [November 22, 2024, 7:25pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/11 "2024-11-22T19:25:30Z")

</div>

This fix requires changing all occurrences of:

`hivepress()->get_version( 'marketplace' ) && $listing->get_price()`

to:

`hivepress()->get_version( 'marketplace' ) && $listing->get_price() !== null`

There are 3 locations with this code in Bookings:

- Line 3129 in hivepress-bookings/includes/components/class-booking.php
- Lines 400, 1401 in hivepress-bookings/includes/controllers/class-booking.php

You can edit these files directly in dashboard in WordPress/Plugins/Plugin Editor, or if you use another code editor this can be done in the same way.

Hope this helps

---

<div class="post-metadata">

**Author:** ![robbo](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/97f17d/32.png) [@robbo](https://community.hivepress.io/u/robbo)\
**Post date:** [November 22, 2024, 7:48pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/12 "2024-11-22T19:48:10Z")

</div>

@ihor ,  
Thanks very much I’ll try this out over the weekend.

---

<div class="post-metadata">

**Author:** ![robbo](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/97f17d/32.png) [@robbo](https://community.hivepress.io/u/robbo)\
**Post date:** [December 9, 2024, 11:44pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/14 "2024-12-09T23:44:09Z")

</div>

Testing to date has been successful, many thanks!

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [January 8, 2025, 11:44pm UTC](https://community.hivepress.io/t/zero-base-price-with-chargeable-pricing-extras/12862/15 "2025-01-08T23:44:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
