Custom product hook

Custom product hook to add product title, (full) description, price, quantity and add to cart button.

PHP:

				
					add_action( 'flatsome_custom_single_product_1', function () {
	global $product;
	?>
	<div class="product-content">
		<!-- ADD PRODUCT TITLE -->
		<div class="product-title">
			<h1>get_name(); ?&gt;</h1>
		</div>
		<!-- ADD PRODUCT (FULL) DESCRIPTION -->
		<div class="product-description">
			<!-- full description -->
			get_description() ); ?&gt;
			<!-- short description -->
			
		</div>
		<!-- ADD PRODUCT PRICE -->
		<div class="product-price">
			<div class="price-wrapper"> get_price_html() ?&gt;</div>
		</div>
		<!-- ADD PRODUCT QUANTITY AND ADD TO CART BUTTON -->
		<div class="product-add-to-cart">
		is_purchasable() &amp;&amp; $product-&gt;is_type( 'simple' ) &amp;&amp; $product-&gt;is_in_stock() &amp;&amp; ! $product-&gt;is_sold_individually() ) {
        woocommerce_quantity_input(
            array(
                'min_value' =&gt; 1,
                'max_value' =&gt; $product-&gt;backorders_allowed() ? '' : $product-&gt;get_stock_quantity(),
            )
        );
    	} 
		echo '<div class="add-to-cart-link"><a class="product-page-link">get_id() .'"&gt; In winkelmand <img src="/wp-content/uploads/2023/01/winkelwagen-plus.svg"></a></div>'; 
		?&gt;
		</div>
	</div>
	&lt;?php
} );
				
			

JS:

				
					
				
			

CSS