caskew2154
1/8/2020 - 4:53 PM

Product Lead Time

add_action( 'woocommerce_before_add_to_cart_form', 'display_product_lead_time' );
function display_product_lead_time() {

    global $product;

    $lead_time = $product->get_attribute( 'lead-time' );

    echo '<div class="lead-time-container">' . $lead_time . '</div>';


}