add_filter( 'woocommerce_get_price_html' , 'custom_woocommerce_get_price_html', 90,2); function woocommerce_get_price_html($price , $product) { $id = $product->get_main_wpml_product_id(); if ($product->is_closed() && $product->is_started() ){ if ($product->get_auction_closed() == '3'){ $price = __('Sold for: ','wc_simple_auctions').wc_price($product->get_price()); } else{ if ($product->get_auction_current_bid()){ if ( $product->is_reserve_met() == FALSE){ $price = __('Auction item did not make it to reserve price ','wc_simple_auctions'); } else{ $price = __('Winning Bid: ','wc_simple_auctions').wc_price($product->get_auction_current_bid()); } } else{ $price = __('Auction Ended ','wc_simple_auctions'); } } } elseif(!$product->is_started()){ $price = ''.__('Starting bid: ','wc_simple_auctions').wc_price($product->get_curent_bid()).''; } else { if($product->get_auction_sealed() == 'yes'){ $price = ''.__('This is sealed bid auction. ','wc_simple_auctions').''; } else{ if (!$product->get_auction_current_bid()){ $price = ''.__('Starting bid: ','wc_simple_auctions').wc_price($product->get_curent_bid()).''; } else { $price = ''.__('Current bid: ','wc_simple_auctions').wc_price($product->get_curent_bid()).''; } } } return $price; }