Exemplo n.º 1
0
 /**
  * Displays the product data box, tabbed, with several panels covering price, stock etc
  *
  * @since    1.0
  */
 public function box()
 {
     $post = $this->wp->getGlobalPost();
     $coupon = $this->couponService->findForPost($post);
     $methods = array();
     foreach ($this->paymentService->getAvailable() as $method) {
         /** @var $method Method */
         $methods[$method->getId()] = $method->getName();
     }
     Render::output('admin/coupon/box', array('coupon' => $coupon, 'types' => $this->couponService->getTypes(), 'paymentMethods' => $methods));
 }