Add Dimensions to Product Archive Loop

// --- Add dimensions to product archive loop. Requires ACF custom field set-up first
 function atkinson_shop_display_dimensions() {
     $custome_field = get_field( 'dimensions' );
        if ( $custom_field ) {
             echo '<div class="dimensions-archive">' .  get_field('dimensions') . '</div>';
         } 
}
add_action( 'woocommerce_after_shop_loop_item_title', 'atkinson_shop_display_dimensions', 9 );
No Comments

Sorry, the comment form is closed at this time.