Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Whils this could be done with some PHP, there’s no out-the box feature to do this.

    Thread Starter eclec

    (@eclectic77)

    Thanks, anybody have an example about that ?

    agelonwl

    (@angelonwl)

    maybe this tutorial can give you an idea on the right hook to use – http://wp-events-plugin.com/tutorials/

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    there’s no hooks for this really… you’d need to do something like:

    $EM_Category = new EM_Category('cat_id');
    $price = 0;
    foreach($EM_Category->get_events() as $EM_Event){
      foreach($EM_Events->get_bookings()->bookings as $EM_Booking){
        $price += $EM_Booking->get_price(false,false);
      }
    }

    warning, i just wrote this by memory here directly, this is not tested, and may not work! it’s just a theoretical starting point

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘category business’ is closed to new replies.