/**
  * Global setup
  */
 public function onBeforeInit()
 {
     Requirements::css('shop_livepub/css/shoplivepub.css');
     LivePubHelper::add_template_path('shop_livepub/templates/php');
     if (!empty($_REQUEST['flushsessioncart']) || !empty($_REQUEST['flush'])) {
         $cart = ShoppingCart::curr();
         if ($cart) {
             $cart->rebuildSessionCart();
         }
     }
     if (!empty($_REQUEST['debugsessioncart'])) {
         Debug::dump(Session::get('Cart'));
     }
 }