Exemple #1
0
 /**
  * Return product ebay template
  * @return Template
  */
 public function getTemplate()
 {
     return Template::getById($this->template_id);
 }
Exemple #2
0
 /**
  * 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');
 }