public function exportInitialize($language = 'all') { $initialized = parent::exportInitialize($language); if ($initialized) { if ($this->where_clause != '') { $this->where_clause .= ' AND '; } $this->where_clause .= "p.products_id = f.products_id"; $this->order_by_clause .= 'f.products_id ASC'; } return $initialized; }
public function exportInitialize($language = 'all') { $initialized = parent::exportInitialize($language); if ($initialized) { if ($this->where_clause != '') { $this->where_clause .= ' AND '; } $export_language = $this->export_language == 'all' ? $this->languages[$this->first_language_code] : $this->languages[$this->export_language]; $this->where_clause .= "p.products_id = pd.products_id AND pd.language_id = {$export_language}"; $this->order_by_clause .= 'p.products_id ASC'; $this->saved_data['products_description_sql'] = 'SELECT * FROM ' . TABLE_PRODUCTS_DESCRIPTION . ' WHERE products_id = %u AND language_id = %u LIMIT 1'; } return $initialized; }