title = __('Recipe', 'woo-discount-rules'); } /** * Render settings page * @param null $page * @return mixed|void */ public function render($page = NULL) { $rule_helper = new Rule(); $available_rules_for_customizer = $rule_helper->getAvailableRules($this->getAvailableConditions()); $params=array( 'woocommerce' => self::$woocommerce_helper, 'configuration' => new Configuration(), 'is_pro' => Helper::hasPro(), 'discount_calculator' => new DiscountCalculator($available_rules_for_customizer), 'template_helper' => self::$template_helper, 'base' => $this, ); self::$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/Recipe.php')->setData($params)->display(); } }