• When put price in General tab such has 99,94 decimal not appear only see 99.
    I cant put . instand of , because is my regional settings.
    Any help? Thanks so much

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same problem. Is there a sollution for it?

    Added a view lines to “classes/wc_bundled_product.php” which set a “.” as comma separator and converts the sales price from string to float.

    public function get_sale_price() {
    $this->sale_price = get_post_meta( $this->id, ‘_wcpb_product_sale_price’, true );

    $decimal_sep = wp_specialchars_decode(stripslashes(get_option ‘woocommerce_price_decimal_sep’)), ENT_QUOTES);
    if ($decimal_sep != ‘.’){
    $this->sale_price = str_replace($decimal_sep, ‘.’, $this->sale_price);
    $this->sale_price =floatval($this->sale_price);
    }

    return $this->sale_price;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Decimal price problem’ is closed to new replies.