<?php

namespace Minimog_Elementor;

use Elementor\Controls_Manager;

defined( 'ABSPATH' ) || exit;

class Widget_Single_Product_Price extends Base {
	public function get_name() {
		return 'tm-single-product-price';
	}

	public function get_title() {
		return __( 'Product Price', 'minimog' );
	}

	public function get_icon_part() {
		return 'eicon-product-price';
	}

	public function get_keywords() {
		return [ 'woocommerce', 'shop', 'store', 'product', 'price' ];
	}

	public function get_categories() {
		return [ 'minimog_wc_product' ];
	}

	protected function render() {
		global $product;

		if ( empty( $product ) && ! $product instanceof \WC_Product ) {
			return;
		}

		wc_get_template( 'single-product/price.php' );
	}

	public function get_group_name() {
		return 'woocommerce';
	}
}
