# Decimal price 5,75 doesn't work

**URL:** <https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708>\
**Category:** Marketplace\
**Tags:** marketplace\
**Created:** [December 11, 2023, 2:15pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708 "2023-12-11T14:15:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![grzendar](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@grzendar](https://community.hivepress.io/u/grzendar)\
**Post date:** [December 11, 2023, 2:15pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/1 "2023-12-11T14:15:10Z")

</div>

Hello.

I have a problem with setting the decimals of the price.

I tested this code as an additional code snippet, but it doesn’t work:

```auto
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
if ( isset( $form['fields']['price'] ) ) {
$form['fields']['price']['type'] = 'number';
$form['fields']['price']['min_value'] = 0;
$form['fields']['price']['decimals'] = 0;
}

return $form;
},
1000
);

```

Maybe one of you has an idea how to solve this?

Regards  
Grzegorz

---

<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:** [December 12, 2023, 1:02pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/4 "2023-12-12T13:02:30Z")

</div>

Hi,

Yes, this is the expected behavior because your PHP snippet disallows decimals.

P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

---

<div class="post-metadata">

**Author:** ![grzendar](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@grzendar](https://community.hivepress.io/u/grzendar)\
**Post date:** [December 15, 2023, 2:05pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/5 "2023-12-15T14:05:08Z")

</div>

Hello

I use the free version - ListingHive. Because the map wasn’t loading. Today I see that it has started working. I can send a printscreen with errors.

1. As for the price of 7.57… Should I buy any extras?  
I will definitely want to buy “Marketplace”.  
Will “Marketplace” cooperate with “ListingHive”

Will purchasing “ListingHive” allow me to enter decimal prices? 7.57

1. If I buy “RentalHive” in the future, is it compatible with “ListingHive”? Are these motifs interchangeable? Will I have to set everything up from scratch?

2. Is it possible to receive “Marketplace” and “RentalHive” for 3-4 days for testing on the test site:  
site one

Then, if it’s good, I’ll buy it for the site:  
site two

Sorry for the language. My English is poor.

Have a nice day  
Grzegorz

---

<div class="post-metadata">

**Author:** ![grzendar](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@grzendar](https://community.hivepress.io/u/grzendar)\
**Post date:** [December 15, 2023, 2:23pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/6 "2023-12-15T14:23:15Z")

</div>

ps  
The plugins have not been tested with WordPress version WordPress 6.4.2

HivePress, HivePress Geolocation, Paid Listings:

Warning: The plugin has not been tested with the current version of WordPress you are using.

Will there be an update?

---

<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:** [December 18, 2023, 8:59am UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/8 "2023-12-18T08:59:41Z")

</div>

Hi,

1. Yes, you can buy the Marketplace extension.

2. After disabling the ListingHive theme and enabling the RentalHive theme, only the design will change, all functionality will remain.

3. Unfortunately, we do not have such a demo version for this extension.

As for the error from testing on the WordPress version, you can ignore it because everything works correctly.

---

<div class="post-metadata">

**Author:** ![grzendar](https://community.hivepress.io/letter_avatar_proxy/v4/letter/g/b487fb/32.png) [@grzendar](https://community.hivepress.io/u/grzendar)\
**Post date:** [December 21, 2023, 8:07pm UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/9 "2023-12-21T20:07:38Z")

</div>

Hello  
One more question.

Now users have added their ads.  
What will happen to you after installing MARKETPLACE?  
Will the ads turn into a sales offer?  
Will I have to create sales offers again in Woocomerce?  
Will I have to create new categories, attributes for Wooccomerce?

Do you have an example of a website on which ListingHive + Marketplace is already working?

kind regards  
Grzegorz

---

<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:** [December 22, 2023, 8:48am UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/11 "2023-12-22T08:48:52Z")

</div>

Hi,

After installing the Marketplace extension, you will be able to sell ads, as a price and a buy button will be added. You will also be able to add a commission, accept payments, and make payouts. For more detailed information, I recommend reviewing the documentation [Marketplace - HivePress Help Center](https://help.hivepress.io/category/45-marketplace)  
Please note that the ListingHive theme provides only the design of the site, all the functionality is in the extensions, here you can see an example of the Marketplace on one of our themes [Custom typography t-shirt & apparel printing design – TaskHive](https://taskhive.hivepress.io/listing/custom-typography-t-shirt-apparel-printing-design/)

I believe this will be useful to you.

---

<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 25, 2024, 9:28am UTC](https://community.hivepress.io/t/decimal-price-5-75-doesnt-work/8708/13 "2024-01-25T09:28:02Z")

</div>

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