Can't put a price with decimals

This topic contains 9 replies, has 4 voices, and was last updated by  memorex13 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #500803

    memorex13
    Expired Member
    Post count: 540

    Hi,
    In CPT ads I can’t put a price with decimals. When I try to update the product, it only allows me to set a fixed price. The price in custom filds is well configured. The example I add a photo.

    Thanks

    #500807

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #500816

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials and a link to the CPT with that field so we can check the settings.

    I cannot read that error so we will need to take a look to find out more.

    Are you using the built in price field? Have you considered adding a custom text field with your own validation rules?

    https://wpgeodirectory.com/docs-v2/places/custom/#validation

    #500824

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #500842

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #500846

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #501382

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @memorex13,

    The numeric field datatype support only perfect numbers.

    so please change price field data type to decimal. if you want to allow prices in decimals.

    Thank You

    #501476

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #501731

    Kiran
    Moderator
    Post count: 7069

    Hi memorex13,

    I have done changes to display currency symbol for decimal type. Please try decimal field type instead of number.

    Let us know how it goes.

    Kiran

    #501987

    memorex13
    Expired Member
    Post count: 540

    Hi,
    Now it works correctly. As always good job.

    Thank you

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket