Site icon Hip-Hop Website Design and Development

Variation prices breakdown only for single product page

Hey I’m trying to display breakdown of selected variation price but only on product single page. I dont want to overwite the price but just to show it after the add-to-cat and buy now buttons.For ex if a medium size product has sale price of $40 then we see $10 as the breaking it into 4.
Ive tried the code below but it outputs the sale prices in loop and render the element several time on front page, I know its not proper but is there a way to do it?

add_action( 'woocommerce_single_product_summary', 'wpa83367_price_html', 1);
function wpa83367_price_html(){

    add_filter('woocommerce_product_variation_get_regular_price', 'custom_priceee', 99, 2 );
    add_filter('woocommerce_product_variation_get_price', 'custom_priceee', 99, 2 );
    function custom_priceee( $price, $product ) {
        // return (float) $price;
        echo '<p class="price">' . $price . '</p><div class="hidden-variable-price" >' . $price . '</div>';
    }

}