Hi @Sai Ananth,
1. Please add the following code under functions.php file locates in your child theme:
add_action('wp_footer', '_n2t_wp_footer');
function _n2t_wp_footer(){
if(is_singular('product')){
?>
<script>
// Custom script to handle pricing display
jQuery(document).ready(function($) {
var originalPrice = $('.single-product .elementor-widget-woocommerce-product-etheme_price .price').html(); // Store the original price
// Update price when a variation is selected
$('form.variations_form').on('woocommerce_variation_has_changed', function() {
var selectedPrice = $('.woocommerce-variation-price .price').html();
if (selectedPrice) {
$('.single-product .elementor-widget-woocommerce-product-etheme_price .price').html(selectedPrice);
}
});
// Reset price when variations are cleared
$('form.variations_form').on('reset_data', function() {
$('.single-product .elementor-widget-woocommerce-product-etheme_price .price').html(originalPrice);
});
});
</script>
<?php
}
}
2. Then add the following custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
.single-product .woocommerce-variation-price .price {
display: none;
}
.single-product table.variations {
margin-bottom: 0;
}
Hope it helps!
















