Home Forums Themeqx Advanced PhP Laravel Classified ads cms Assist with monetary value conversion Reply To: Assist with monetary value conversion

#1009

The Your website where hosted, the server information. If you feel insecure to provide this, that’s OK, i’m giving you the solution, hope you can do this.

Open the helper file in a text editor /root/app/helpers.php

Replace the below code block from line 267 to 284

function themeqx_price($price = 0){
    return get_option('currency_sign').' '.$price;
}

/**
 * @param int $price
 * @param int $negotiable
 * @return string
 */

function themeqx_price_ng($price = 0, $negotiable = 0){
    $ng = $negotiable ? ' ('.trans('app.negotiable').') ' : '';
    $show_price = '';
    if ($price > 0){
        $show_price = get_option('currency_sign').' '.$price;
    }
    return $show_price.$ng;
}

With below code block


function themeqx_price($price = 0){
    if ($price > 0){
        $price = number_format($price, 2);
    }
    return get_option('currency_sign').' '.$price;
}

/**
 * @param int $price
 * @param int $negotiable
 * @return string
 */

function themeqx_price_ng($price = 0, $negotiable = 0){
    $ng = $negotiable ? ' ('.trans('app.negotiable').') ' : '';
    $show_price = '';
    if ($price > 0){
        $price = number_format($price, 2);
        $show_price = get_option('currency_sign').' '.$price;
    }
    return $show_price.$ng;
}

It will solve your issue.

Best regards