//ads: 
?>
			
						
						
		
		
		
		
		
		
		Display the WooCommerce product price inside a custom function
PHP Snippet 1:
   add_action( 'woocommerce_after_shop_loop_item', 'acf_template_loop_product_meta', 20 );
function acf_template_loop_product_meta() {
    global $product;
    if ( $brand  = get_field('brand', $product->get_id()) ) {
        echo '<p><strong>'. __("    ") . '</strong> ' . $brand . '</p>';
    }
    if ( $designer  = get_field('designer', $product->get_id()) ) {
        echo '<p><strong>'. __("    ") . '</strong> ' . $designer . '</p>';
    }
    if ( $model  = get_field('model', $product->get_id()) ) {
        echo '<p><strong>'. __("    ") . '</strong> ' . $model . '</p>';
    }
    
    if ( $price = $product->get_price() ) {
        echo '<p><strong>'. __("    ") . '</strong> ' . ? $price . '</p>';
    }
}
