Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mohaiminul Islam

    (@skshaikat)

    use this code:

    add_action( 'woocommerce_after_shop_loop_item',  'upcoming_shop_page_view', 7 );
    
        function upcoming_shop_page_view() {
            global $post;
            $_upcoming = get_post_meta( $post->ID, '_upcoming', true );
            $_available_on = get_post_meta( $post->ID, '_available_on', true );
            if( $_upcoming == 'yes') { ?>
                <div class="upcoming">
                    <?php _e( 'Available from: ', 'wup' ); 
    
                    if( $_available_on == '' ) { ?>
                        <strong><?php _e( 'Date not yet set.', 'wup' ); ?></strong>
                    <?php
                    }else { ?>
                        <strong><?php echo $_available_on; ?></strong>
                    <?php
                    }
                    ?>
                </div>
        <?php
            }
        }
    Plugin Author Mohaiminul Islam

    (@skshaikat)

    This feature added on 1.3 version. Making this topic resolved. Thanks.

    hi Sk Shaikat
    where should i use this code?
    i have this problem too.

    Plugin Author Mohaiminul Islam

    (@skshaikat)

    you don’t need to use this code. I have added this as builtin in last update

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display available from in shop too’ is closed to new replies.