View difference between Paste ID: zMuQmQpn and qL050Bak
SHOW: | | - or go back to the newest paste.
1
<?php
2-
                                                $cost = tribe_get_cost();
2+
                                                //$cost = tribe_get_cost();
3-
                                                if ( !empty( $cost ) ) :
3+
                                                //if ( !empty( $cost ) ) :
4
                                        ?>
5
                                        <tr>
6
                                                <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar'); ?></td>
7
                                                <td class="tribe-events-event-meta-value" itemprop="price"> <?php
8
 the_content();
9
                                                tribe_get_ticket_form();
10
                                                $price_differential = max($wootickets_pricing) > min($wootickets_pricing);
11
 
12
                                                if (count($wootickets_pricing) === 1 or !price_differential) {
13
                                                        $price = woocommerce_price($wootickets_pricing[0]);
14
                                                        echo "Tickets cost $price";
15
                                                }
16
                                                elseif (count($wootickets_pricing) > 1) {
17
                                                        $from = woocommerce_price(min($wootickets_pricing));
18
                                                        $to = woocommerce_price(max($wootickets_pricing));
19
                                                        echo "Tickets from $from &ndash; $to";
20
                                                }
21
                                        ?></td>
22
                                         </tr>
23-
                                        <?php endif; ?>
23+
                                        <?php //endif; ?>