Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //$cost = tribe_get_cost();
- //if ( !empty( $cost ) ) :
- ?>
- <tr>
- <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar'); ?></td>
- <td class="tribe-events-event-meta-value" itemprop="price"> <?php
- the_content();
- tribe_get_ticket_form();
- $price_differential = max($wootickets_pricing) > min($wootickets_pricing);
- if (count($wootickets_pricing) === 1 or !price_differential) {
- $price = woocommerce_price($wootickets_pricing[0]);
- echo "Tickets cost $price";
- }
- elseif (count($wootickets_pricing) > 1) {
- $from = woocommerce_price(min($wootickets_pricing));
- $to = woocommerce_price(max($wootickets_pricing));
- echo "Tickets from $from – $to";
- }
- ?></td>
- </tr>
- <?php //endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment