Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ( !$product->is_in_stock() ) || ( empty( $start_date ) || time() > $start_date ) && ( empty( $end_date ) || time() < $end_date ) ) {
- $is_there_any_product = true;
- echo sprintf( "<input type='hidden' name='product_id[]' value='%d'>", $ticket->ID );
- echo "<tr>";
- echo "<td width='75' class='woocommerce'>";
- if ( $product->is_in_stock() ) {
- woocommerce_quantity_input( array( 'input_name' => 'quantity_' . $ticket->ID,
- 'input_value' => 0,
- 'min_value' => 0,
- 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity(), ) );
- $is_there_any_product_to_sell = true;
- } else {
- echo "<span class='tickets_nostock'>" . esc_html__( 'Out of stock!', 'tribe-wootickets' ) . "</span>";
- }
- echo "</td>";
- echo "<td nowrap='nowrap' class='tickets_name'>";
- echo $ticket->name;
- echo "</td>";
- echo "<td class='tickets_price'>";
- echo $this->get_price_html( $product );
- echo "</td>";
- echo "<td class='tickets_description'>";
- echo $ticket->description;
- echo "</td>";
- echo "</tr>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement