Colin

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Hide no events content #1156492
    Colin
    Participant

    Got it

    /**
     * Clean up Event Notices()
     */
    function notice_filter($string) {
      return strpos($string, 'No matching events') === false;
    } 
     
    function tribe_the_notices($html, $notices) {
    	
      $notices = array_filter($notices, __NAMESPACE__ . '\\notice_filter');
    	
      $html        = ! empty( $notices ) ? '<div class="tribe-events-notices"><ul><li>' . implode( '</li><li>', $notices ) . '</li></ul></div>' : '';
      	
      return $html;
    }
    add_filter('tribe_the_notices', __NAMESPACE__ . '\\tribe_the_notices', 10, 2);
    • This reply was modified 9 years, 8 months ago by Colin.
    in reply to: Max of 8 tickets of either of 2 types #1148202
    Colin
    Participant

    Not quite. A parent would only buy a max of 2 tickets; one of each type and the entire event would have a limit of no more than 8 tickets regardless of type.

    So in the case where 4 parents come and each bring 2 kids or 8 parents come with 1 kid or any combination. The inventory for the event needs to be 8 regardless of type.

Viewing 2 posts - 1 through 2 (of 2 total)