function ruta_custom_product_card_details() {
global $post;
if ( has_term( [ 'exclusive' , 'exclusive-2', 'exclusive-3' ], 'product_cat', $post->ID ) ) {
printf( '<div class="product-card__badges_exclusive">%s</div>', __( 'Exclusive', 'Ruta' ) );
}
}
add_action( 'woocommerce_before_add_to_cart_form', 'ruta_custom_order_view' );
function ruta_custom_order_view() {
global $post, $product;
$custom_order_value = get_post_meta( $post->ID, '_custom_order_field', true );
if ( $custom_order_value ) {
$custom_order_txt = get_field('custom_order_content');
$custom_order_title_value = get_field('custom_order_title');
?>
<div class="custom_order_field">
<div class="custom_order_title"><?php echo($custom_order_title_value); ?></div>
<div class="custom_order_content">
<?php
echo ($custom_order_txt);
echo "</div></div>"; }
else {
//null
}
}
?>