Support » Plugin: Easy Digital Downloads » Sending Item Price to wp_postmeta

  • TheXrion

    (@negarehgfx)


    Hello
    I’m trying to sendig Item price ( EDD ) to wordpress Database in wp_postmeta column
    With a custom html form ,

    when Item price for example : 250000 sent with <input type="number" /> the price will shown in frontend of website like : 25000.0

    there is not setting of any comma or separator in EDD plugin Settings page .

    So, The price will shown correctly in DB like whatever I entered. But in Frontend showing we have Problem like separator for last number of price.

    Please help me with This issue .

    • This topic was modified 5 months ago by  TheXrion.
    • This topic was modified 5 months ago by  TheXrion.
    • This topic was modified 5 months ago by  TheXrion.
    • This topic was modified 5 months ago by  TheXrion.
    • This topic was modified 5 months ago by  James Huff.
Viewing 4 replies - 1 through 4 (of 4 total)
  • TheXrion

    (@negarehgfx)

    UPDATE TOPIC :

    Notice that when my price = 25000 there is not problem
    But when the last number of price is a number > 0 i have EDD didn’t shown correctly
    example : If i enter price like 25954 , Price will shown in frontend like this : 2595.4 !

    (( I didn’t be able to edit topic and by force i send update in new topic ))

    Pratik Jain

    (@pratik-jain)

    Hi @negarehgfx

    You can find separator settings at EDD Plugin Settings > General > Currency tab. In that you can find “Thousands Separator” and “Decimal Separator”.

    EDD automatically format the product price at front end so when you enter 5 then it will be display like $5.00 at front end.

    I have checked your case by entering 25954 price and it will display 25954.00 at front end.

    Can you please confirm that when you enter 25954 then it will be converted to 2595.4?

    TheXrion

    (@negarehgfx)

    Hi @pratik-jain
    I checked the settings and as i told “Thousands Separator” and “Decimal Separator” isn’t set with any value and the filed is clear .

    Yes You can put the currency to IRAN Rials and type that price it will convert from 25954 to 2595.4.

    Best Regards

    Hi @negarehgfx

    Please refer below screenshots. I have followed your step but price looks OK. There is no conversation issue.

    Currency Setting : http://prntscr.com/nss3qd

    Product Price : http://prntscr.com/nss6vm

    Product at Front end : http://prntscr.com/nss7ku

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.