Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    How the prices are displayed you can configure from wp-admin / Classifieds / Options / Core panel.

    Thread Starter Gnurtvo

    (@gnurtvo)

    I have already adjusted but can not be so
    Capture
    Help me edit it
    thanks

    • This reply was modified 7 years, 5 months ago by Gnurtvo.
    Plugin Author Greg Winiarski

    (@gwin)

    There seems to be a bug in WPAdverts which does not allow to use the price field without decimal places to fix this you would need to open file wpadverts.php find there code

    
        wp_localize_script( 'adverts-auto-numeric', 'adverts_currency', array(
            "aSign" => $currency["sign"], 
            "pSign" => $currency["sign_type"],
            "aSep" => $currency["char_thousand"], 
            "aDec" => $currency["char_decimal"]
        ));
    

    and replace it with

    
        wp_localize_script( 'adverts-auto-numeric', 'adverts_currency', array(
            "aSign" => $currency["sign"], 
            "pSign" => $currency["sign_type"],
            "aSep" => $currency["char_thousand"], 
            "aDec" => $currency["char_decimal"],
            "mDec" => $currency["decimals"]
        ));
    

    The same update will be in next WPAdverts release.

    Thread Starter Gnurtvo

    (@gnurtvo)

    ok.I did it. thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Decimal Places add Price’ is closed to new replies.