public function registerFulfillmentMenu(BuildMenuEvent $event)
 {
     $event->addItem('ms.ecom.fulfillment.active', 'Active');
     $event->addItem('ms.ecom.fulfillment.new', 'New');
     $event->addItem('ms.ecom.fulfillment.pick', 'Pick', ['ms.ecom.fulfillment.process.pick', 'ms.ecom.fulfillment.process.pick.action']);
     $event->addItem('ms.ecom.fulfillment.pack', 'Pack', ['ms.ecom.fulfillment.process.pack', 'ms.ecom.fulfillment.process.pack.action']);
     $event->addItem('ms.ecom.fulfillment.post', 'Post', ['ms.ecom.fulfillment.process.post', 'ms.ecom.fulfillment.process.post.action', 'ms.ecom.fulfillment.process.address', 'ms.ecom.fulfillment.process.address.action']);
     $event->addItem('ms.ecom.fulfillment.pickup', 'Pick up');
 }
 public function index($productID, $saveButton = null)
 {
     $product = $this->get('product.loader')->getByID($productID);
     $tabs = array('Attributes' => 'ms.commerce.product.edit.attributes');
     if ($product->getDetails()->count() > 0) {
         $tabs['Details'] = 'ms.commerce.product.edit.details';
     }
     $tabs['Pricing'] = 'ms.commerce.product.edit.pricing';
     $tabs['Units'] = 'ms.commerce.product.edit.units';
     $tabs['Stock'] = 'ms.commerce.product.edit.stock';
     $tabs['Images'] = 'ms.commerce.product.edit.images';
     $event = new BuildMenuEvent();
     $current = $this->get('http.request.master')->get('_route');
     foreach ($tabs as $label => $route) {
         $event->addItem($route, $label, [], $current == $route ? ['active'] : []);
     }
     $this->get('event.dispatcher')->dispatch(Events::PRODUCT_ADMIN_TAB_BUILD, $event);
     $tabs = $event->getItems();
     return $this->render('Message:Mothership:Commerce::product:tabs', array('tabs' => $tabs, 'productID' => $productID, 'saveButton' => $saveButton));
 }
 /**
  * Register items to the sidebar of the orders-pages.
  *
  * @param BuildMenuEvent $event The event
  */
 public function registerSidebarItems(BuildMenuEvent $event)
 {
     $event->addItem('ms.commerce.order.view.all', 'All Orders');
     $event->addItem('ms.commerce.order.view.shipped', 'Shipped Orders');
 }
 public function buildProductMenu(BuildMenuEvent $event)
 {
     $current = $this->get('http.request.master')->get('_route');
     $event->addItem('ms.product.pages.list', 'Pages', [], $current == 'ms.product.pages.list' ? ['active'] : []);
 }
 /**
  * Register items to the main menu of the control panel.
  *
  * @param ControlPanelBuildMenuEvent $event The event
  */
 public function registerMainMenuItems(ControlPanelBuildMenuEvent $event)
 {
     $event->addItem('ms.cp.cms.dashboard', 'Content', array('ms.cp.cms'));
 }
 /**
  * Add `Refer a Friend` to main admin panel menu
  *
  * @param BuildMenuEvent $event
  */
 public function buildMenuTabs(BuildMenuEvent $event)
 {
     $event->addItem('ms.cp.refer_a_friend.dashboard', 'Refer a Friend', ['ms.cp.refer_a_friend']);
 }
 public function registerMainMenuItems(BuildMenuEvent $event)
 {
     $event->addItem('ms.commerce.return.dashboard', 'Returns', array('ms.returns'));
 }