Woocommerce 5.4.1 - display price without decimals

After 5 hours working hard trying a lot of examples here, here my Issue pleases:

  1. I must to put a comma (,) after the price (number) like this.: $ 2,
  2. I got it with the following snippet of code - But only in the archive page (shop page)
add_filter( 'wc_price', 'woo_format_decimal_value', 10, 4 );
    function woo_format_decimal_value( $return, $price, $args, $unformatted_price ) {
    $unit = intval( $price );
    $decimal = sprintf( '%02d', ( $price-$unit ) * 100 );
    return sprintf( '%s %d,', get_woocommerce_currency_symbol(), $unit, $decimal );

  1. I need to remove the decimals after the comma because all prices in the case will be rounded.: e.g (2,) (3,) (4,)
  2. Issue: In this code below, when i click on the button, it display the whole price with decimals after the comma.: e.g $ 2,00
$retorno .= "<div class='p5_btn_checkout_container d-none' data-price='".$product->get_price()."'>
<div class='p5_btn_custom_checkout'>
    <p id='p5_btn_amount'></p>
    <button type='submit' name='add-to-cart' value='".esc_attr( $product->get_id() )."' class='single_add_to_cart_button button alt'>". __( "RESERVE NUMBER" ) ."</button>

return $retorno;

Result in the Browser:

<div class="p5_btn_checkout_container" data-price="2">
    <div class="p5_btn_custom_checkout"><p id="p5_btn_amount">$&nbsp;2,00</p><button type="submit" name="add-to-cart" value="756" class="single_add_to_cart_button button alt">RESERVE NUMBER</button>
  1. How can i format this function in special ( $product->get_price() ), so i can get the same result as the Archive Page (Shop Page) please.

In Woocommerce > Setttings, the Number of decimal places is set to 2.

Thank you so in advance!!