Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php } elseif( '2' === $product->get_lottery_closed() && 'yes' === get_post_meta( $post->ID, '_lottery_manualy_winners', true ) && empty($lottery_winers) ){
- esc_html_e('Please be patient. We are picking winners!','wc-lottery-pn');
- } else {
- if ( $product->get_lottery_closed() == 2 ) {?>
- <?php if ($product->is_user_participating()) : ?>
- <?php if(in_array($current_user->ID, $lottery_winers)): ?>
- <p><?php _e('Congratulations! You are winner!','wc_lottery') ?></p>
- <?php else: ?>
- <p><?php _e('Sorry, better luck next time.','wc_lottery') ?></p>
- <?php endif; ?>
- <?php endif;?>
- <?php } else{
- if ( $product->get_lottery_fail_reason() == '1' ) { ?>
- <p><?php _e('','wc_lottery') ?></p>
- <?php } elseif ( $product->get_lottery_fail_reason() == '2' ) { ?>
- <p><?php _e('Lottery failed because there was not enough participants','wc_lottery') ?></p>
- <?php } ?>
- <?php } ?>
- <?php }
- wp-content/plugins/woocommerce-lottery-pick-number/templates/single-product
- Line 26
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement