Hello, I was kindly provided this code below to move the product price ontop of the add to cart page. But now when we use different prices for the variation’s theres 2 prices.
Is there a way to only include 1 price, but still have it show ontop of the add to cart button?
Thanks so much
add_action('wp_footer', 'n2t_wp_footer');
function n2t_wp_footer(){
if(is_singular('product')){
?>
<script>
jQuery( function($){
$(document).ready(function(){
$('[data-widget_type="woocommerce-product-etheme_price.default"]').insertBefore($("form.cart button.single_add_to_cart_button"));
})
});
</script>
<?php
}
}