Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)