<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }

// Load the existing render function.
require_once dirname( __DIR__, 3 ) . '/widgets/tags/widget-product-price/elementor-render.php';

/**
 * Render callback for ggmc/product-price block.
 */
function render_ggmc_product_price_block( $attributes ) {
    $product_data = ggmc_block_get_product_data( $attributes );
    $adapter      = new GGMC_Block_Adapter( $attributes, $product_data );
    ob_start();
    ggmc_product_price_render( $adapter );
    return ob_get_clean();
}
