Add Price on Add To Cart Button 3
The below article is for WooFood , Food Ordering Plugin for WordPress and WooCommerce. If you don't already have it . Please take a look on the product page

The following snippet will copy the price automatically and add it inside the add to cart button

add_action("wp_footer", "wpslash_hook_to_add_the_price_in_button");

function wpslash_hook_to_add_the_price_in_button()

{

    ?>
    <script>

        jQuery(document).ready(function() 


            {



jQuery(document).on('change', '.extra-options-accordion select, .extra-options-accordion input , .input-text.qty', function()
    {


        var price  = jQuery('.wf_product_view .price').text();

        jQuery('.wf_product_view .single_add_to_cart_button').text(price+' | Add to cart');

    })                   


      });

    </script>

    <?php
}

function wpslash_include_price_in_add_to_cart_button( $text, $product ) {
 		
        $text = strip_tags(wc_price($product->get_price()))." | ".$text;
    
    return $text;
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'wpslash_include_price_in_add_to_cart_button', 10, 2 );
The above article is for WooFood Food Delivery Plugin for WooCommerce