/** * Return product ebay template * @return Template */ public function getTemplate() { return Template::getById($this->template_id); }
/** * Action export template products * @return array */ public static function actionEndTemplate() { $template = Template::getById((int) $_REQUEST['template_id']); if (empty($template->id)) { return array(); } $product_ids = Product::getTemplateProductIds($template->id); static::endProducts($product_ids); return static::returnBackRedirect('ebay.manage'); }