Диплом: Автоматизация подсистемы учета статистических данных и формирование отчета по работе интернет-магазина ООО "ЛЮТИК"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
97
$dta ['entry_length_class'] = $this->language-
>get('entry_length_class');
$dta ['entry_length'] = $this->language->get('entry_length');
$dta ['entry_width'] = $this->language->get('entry_width');
$dta ['entry_height'] = $this->language->get('entry_height');
$dta ['entry_image'] = $this->language->get('entry_image');
$dta ['entry_store'] = $this->language->get('entry_store');
$dta ['entry_manufacturer'] = $this->language-
>get('entry_manufacturer');
$dta ['entry_down lod '] = $this->language->get('entry_down lod
');
$dta ['entry_category'] = $this->language-
>get('entry_category');
$dta ['entry_filter'] = $this->language->get('entry_filter');
$dta ['entry_related'] = $this->language->get('entry_related');
$dta ['entry_attribute'] = $this->language-
>get('entry_attribute');
$dta ['entry_text'] = $this->language->get('entry_text');
$dta ['entry_option'] = $this->language->get('entry_option');
$dta ['entry_option_value'] = $this->language-
>get('entry_option_value');
$dta ['entry_required'] = $this->language-
>get('entry_required');
$dta ['entry_sort_order'] = $this->language-
>get('entry_sort_order');
$dta ['entry_status'] = $this->language->get('entry_status');
$dta ['entry_date_start'] = $this->language-
>get('entry_date_start');
$dta ['entry_date_end'] = $this->language-
>get('entry_date_end');
$dta ['entry_priority'] = $this->language-
>get('entry_priority');
$dta ['entry_tag'] = $this->language->get('entry_tag');
$dta ['entry_customer_group'] = $this->language-
>get('entry_customer_group');
$dta ['entry_reward'] = $this->language->get('entry_reward');
$dta ['entry_layout'] = $this->language->get('entry_layout');
$dta ['entry_recurring'] = $this->language-
>get('entry_recurring');
$dta ['entry_main_category'] = $this->language-
>get('entry_main_category');
$dta ['help_keyword'] = $this->language->get('help_keyword');
$dta ['help_sku'] = $this->language->get('help_sku');
$dta ['help_upc'] = $this->language->get('help_upc');
$dta ['help_ean'] = $this->language->get('help_ean');
$dta ['help_jan'] = $this->language->get('help_jan');
$dta ['help_isbn'] = $this->language->get('help_isbn');
$dta ['help_mpn'] = $this->language->get('help_mpn');
$dta ['help_minimum'] = $this->language->get('help_minimum');
$dta ['help_manufacturer'] = $this->language-
>get('help_manufacturer');
98
$dta ['help_stock_status'] = $this->language-
>get('help_stock_status');
$dta ['help_points'] = $this->language->get('help_points');
$dta ['help_category'] = $this->language->get('help_category');
$dta ['help_filter'] = $this->language->get('help_filter');
$dta ['help_down lod '] = $this->language->get('help_down lod
');
$dta ['help_related'] = $this->language->get('help_related');
$dta ['help_tag'] = $this->language->get('help_tag');
$dta ['button_save'] = $this->language->get('button_save');
$dta ['button_cancel'] = $this->language->get('button_cancel');
$dta ['button_attribute_add'] = $this->language-
>get('button_attribute_add');
$dta ['button_option_add'] = $this->language-
>get('button_option_add');
$dta ['button_option_value_add'] = $this->language-
>get('button_option_value_add');
$dta ['button_discount_add'] = $this->language-
>get('button_discount_add');
$dta ['button_special_add'] = $this->language-
>get('button_special_add');
$dta ['button_image_add'] = $this->language-
>get('button_image_add');
$dta ['button_remove'] = $this->language->get('button_remove');
$dta ['button_recurring_add'] = $this->language-
>get('button_recurring_add');
$dta ['tab_general'] = $this->language->get('tab_general');
$dta ['tab_data'] = $this->language->get('tab_data');
$dta ['tab_attribute'] = $this->language->get('tab_attribute');
$dta ['tab_option'] = $this->language->get('tab_option');
$dta ['tab_recurring'] = $this->language->get('tab_recurring');
$dta ['tab_discount'] = $this->language->get('tab_discount');
$dta ['tab_special'] = $this->language->get('tab_special');
$dta ['tab_image'] = $this->language->get('tab_image');
$dta ['tab_links'] = $this->language->get('tab_links');
$dta ['tab_reward'] = $this->language->get('tab_reward');
$dta ['tab_design'] = $this->language->get('tab_design');
$dta ['tab_openbay'] = $this->language->get('tab_openbay');
if (isset($this->error['warning'])) {
$dta ['error_warning'] = $this->error['warning'];
} else {
$dta ['error_warning'] = '';}
if (isset($this->error['name'])) {
$dta ['error_name'] = $this->error['name'];
} else {
$dta ['error_name'] = array();}
if (isset($this->error[' modl '])) {
$dta ['error_ modl '] = $this->error[' modl '];
} else {
$dta ['error_ modl '] = '';}
if (isset($this->error['keyword'])) {
$dta ['error_keyword'] = $this->error['keyword'];
99
} else {
$dta ['error_keyword'] = '';
}
$url = '';
if (isset($this->request->get['filter_name'])) {
$url .= '&filter_name=' . urlencode(html_entity_decode($this-
>request->get['filter_name'], ENT_QUOTES, 'UTF-8'));}
if (isset($this->request->get['filter_ modl '])) {
$url .= '&filter_ modl =' . urlencode(html_entity_decode($this-
>request->get['filter_ modl '], ENT_QUOTES, 'UTF-8'));}
if (isset($this->request->get['filter_price'])) {
$url .= '&filter_price=' . $this->request->get['filter_price'];}
if (isset($this->request->get['filter_manufacturer'])) {
$url .= '&filter_manufacturer=' . $this->request-
>get['filter_manufacturer'];
}
if (isset($this->request->get['filter_category'])) {
$url .= '&filter_category=' . $this->request-
>get['filter_category'];
}
if (isset($this->request->get['filter_status'])) {
$url .= '&filter_status=' . $this->request-
>get['filter_status'];
}
if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
if (isset($this->request->get['page'])) {
$url .= '&page=' . $this->request->get['page'];
}
$dta ['breadcrumbs'] = array();
$dta ['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this-
>session->data['token'], 'SSL')
);
$dta ['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('catalog/product', 'token=' . $this-
>session->data['token'] . $url, 'SSL')
);
if (!isset($this->request->get['product_id'])) {
$dta ['action'] = $this->url->link('catalog/product/add',
'token=' . $this->session->data['token'] . $url, 'SSL');
} else {
$dta ['action'] = $this->url->link('catalog/product/edit',
'token=' . $this->session->data['token'] . '&product_id=' .
$this->request->get['product_id'] . $url, 'SSL');}
100
$dta ['cancel'] = $this->url->link('catalog/product', 'token=' .
$this->session->data['token'] . $url, 'SSL');if (isset($this-
>request->get['product_id']) && ($this->request-
>server['REQUEST_METHOD'] != 'POST')) {
$product_info = $this-> modl _catalog_product->getProduct($this-
>request->get['product_id']);}
$dta ['token'] = $this->session->data['token'];
$dta ['ckeditor'] = $this->config->get('config_editor_default');
$this-> lod -> modl ('localisation/language');
$dta ['languages'] = $this-> modl _localisation_language-
>getLanguages();
$dta ['lang'] = $this->language->get('lang');
if (isset($this->request->post['product_description'])) {
$dta ['product_description'] = $this->request-
>post['product_description'];
} elseif (isset($this->request->get['product_id'])) {
$dta ['product_description'] = $this-> modl _catalog_product-
>getProductDescriptions($this->request->get['product_id']);
} else {
$dta ['product_description'] = array();}
if (isset($this->request->post['image'])) {
$dta ['image'] = $this->request->post['image'];
} elseif (!empty($product_info)) {
$dta ['image'] = $product_info['image'];
} else {
$dta ['image'] = '';}
$this-> lod -> modl ('tool/image');
if (isset($this->request->post['image']) && is_file(DIR_IMAGE .
$this->request->post['image'])) {
$dta ['thumb'] = $this-> modl _tool_image->resize($this-
>request->post['image'], 100, 100);
} elseif (!empty($product_info) && is_file(DIR_IMAGE .
$product_info['image'])) {
$dta ['thumb'] = $this-> modl _tool_image-
>resize($product_info['image'], 100, 100);
} else {
$dta ['thumb'] = $this-> modl _tool_image-
>resize('no_image.png', 100, 100);}
$dta ['placeholder'] = $this-> modl _tool_image-
>resize('no_image.png', 100, 100);
if (isset($this->request->post[' modl '])) {
$dta [' modl '] = $this->request->post[' modl '];
} elseif (!empty($product_info)) {
$dta [' modl '] = $product_info[' modl '];
} else {
$dta [' modl '] = '';}
if (isset($this->request->post['sku'])) {
$dta ['sku'] = $this->request->post['sku'];
} elseif (!empty($product_info)) {
$dta ['sku'] = $product_info['sku'];
} else {
$dta ['sku'] = '';}
101
if (isset($this->request->post['upc'])) {
$dta ['upc'] = $this->request->post['upc'];
} elseif (!empty($product_info)) {
$dta ['upc'] = $product_info['upc'];
} else {
$dta ['upc'] = '';}
if (isset($this->request->post['ean'])) {
$dta ['ean'] = $this->request->post['ean'];
} elseif (!empty($product_info)) {
$dta ['ean'] = $product_info['ean'];
} else {
$dta ['ean'] = '';}
if (isset($this->request->post['jan'])) {
$dta ['jan'] = $this->request->post['jan'];
} elseif (!empty($product_info)) {
$dta ['jan'] = $product_info['jan'];
} else {
$dta ['jan'] = '';}
if (isset($this->request->post['isbn'])) {
$dta ['isbn'] = $this->request->post['isbn'];
} elseif (!empty($product_info)) {
$dta ['isbn'] = $product_info['isbn'];
} else {
$dta ['isbn'] = '';}
if (isset($this->request->post['mpn'])) {
$dta ['mpn'] = $this->request->post['mpn'];
} elseif (!empty($product_info)) {
$dta ['mpn'] = $product_info['mpn'];
} else {
$dta ['mpn'] = '';}
if (isset($this->request->post['location'])) {
$dta ['location'] = $this->request->post['location'];
} elseif (!empty($product_info)) {
$dta ['location'] = $product_info['location'];
} else {
$dta ['location'] = '';}
if ($this->config->get('config_product_upc_hide') != 0) {
$dta ['hide_upc'] = true;
} else {
$dta ['hide_upc'] = false;}
if ($this->config->get('config_product_ean_hide') != 0) {
$dta ['hide_ean'] = true;
} else {
$dta ['hide_ean'] = false;}
if ($this->config->get('config_product_jan_hide') != 0) {
$dta ['hide_jan'] = true;
} else {
$dta ['hide_jan'] = false;}
if ($this->config->get('config_product_isbn_hide') != 0) {
$dta ['hide_isbn'] = true;
} else {
$dta ['hide_isbn'] = false;}
102
if ($this->config->get('config_product_mpn_hide') != 0) {
$dta ['hide_mpn'] = true;
} else {
$dta ['hide_mpn'] = false;}
$this-> lod -> modl ('setting/store');
$dta ['stores'] = $this-> modl _setting_store->getStores();
if (isset($this->request->post['product_store'])) {
$dta ['product_store'] = $this->request->post['product_store'];
} elseif (isset($this->request->get['product_id'])) {
$dta ['product_store'] = $this-> modl _catalog_product-
>getProductStores($this->request->get['product_id']);
} else {
$dta ['product_store'] = array(0);}
if (isset($this->request->post['keyword'])) {
$dta ['keyword'] = $this->request->post['keyword'];
} elseif (!empty($product_info)) {
$dta ['keyword'] = $product_info['keyword'];
} else {
$dta ['keyword'] = '';}
if (isset($this->request->post['shipping'])) {
$dta ['shipping'] = $this->request->post['shipping'];
} elseif (!empty($product_info)) {
$dta ['shipping'] = $product_info['shipping'];
} else {
$dta ['shipping'] = 1;}
if (isset($this->request->post['price'])) {
$dta ['price'] = $this->request->post['price'];
} elseif (!empty($product_info)) {
$dta ['price'] = $product_info['price'];
} else {
$dta ['price'] = '';}
$this-> lod -> modl ('catalog/recurring');
$dta ['recurrings'] = $this-> modl _catalog_recurring-
>getRecurrings();
if (isset($this->request->post['product_recurrings'])) {
$dta ['product_recurrings'] = $this->request-
>post['product_recurrings'];
} elseif (!empty($product_info)) {
$dta ['product_recurrings'] = $this-> modl _catalog_product-
>getRecurrings($product_info['product_id']);
} else {
$dta ['product_recurrings'] = array();
}
$this-> lod -> modl ('localisation/tax_class');
$dta ['tax_classes'] = $this-> modl _localisation_tax_class-
>getTaxClasses();
if (isset($this->request->post['tax_class_id'])) {
$dta ['tax_class_id'] = $this->request->post['tax_class_id'];
} elseif (!empty($product_info)) {
$dta ['tax_class_id'] = $product_info['tax_class_id'];
} else {
$dta ['tax_class_id'] = 0;}
103
if (isset($this->request->post['date_available'])) {
$dta ['date_available'] = $this->request-
>post['date_available'];
} elseif (!empty($product_info)) {
$dta ['date_available'] = ($product_info['date_available'] !=
'0000-00-00') ? $product_info['date_available'] : '';
} else {
$dta ['date_available'] = date('Y-m-d');}
if (isset($this->request->post['quantity'])) {
$dta ['quantity'] = $this->request->post['quantity'];
} elseif (!empty($product_info)) {
$dta ['quantity'] = $product_info['quantity'];
} else {
$dta ['quantity'] = 1;}
if (isset($this->request->post['minimum'])) {
$dta ['minimum'] = $this->request->post['minimum'];
} elseif (!empty($product_info)) {
$dta ['minimum'] = $product_info['minimum'];
} else {
$dta ['minimum'] = 1; }
if (isset($this->request->post['subtract'])) {
$dta ['subtract'] = $this->request->post['subtract'];
} elseif (!empty($product_info)) {
$dta ['subtract'] = $product_info['subtract'];
} else {
$dta ['subtract'] = 1;}
if (isset($this->request->post['sort_order'])) {
$dta ['sort_order'] = $this->request->post['sort_order'];
} elseif (!empty($product_info)) {
$dta ['sort_order'] = $product_info['sort_order'];
} else {
$dta ['sort_order'] = 1;}
$this-> lod -> modl ('localisation/stock_status');
$dta ['stock_statuses'] = $this-> modl
_localisation_stock_status->getStockStatuses();
if (isset($this->request->post['stock_status_id'])) {
$dta ['stock_status_id'] = $this->request-
>post['stock_status_id'];
} elseif (!empty($product_info)) {
$dta ['stock_status_id'] = $product_info['stock_status_id'];
} else {
$dta ['stock_status_id'] = 0;}
if (isset($this->request->post['status'])) {
$dta ['status'] = $this->request->post['status'];
} elseif (!empty($product_info)) {
$dta ['status'] = $product_info['status'];
} else {
$dta ['status'] = true;}
if (isset($this->request->post['weight'])) {
$dta ['weight'] = $this->request->post['weight'];
} elseif (!empty($product_info)) {
$dta ['weight'] = $product_info['weight'];
104
} else {
$dta ['weight'] = '';}
$this-> lod -> modl ('localisation/weight_class');
$dta ['weight_classes'] = $this-> modl
_localisation_weight_class->getWeightClasses();
if (isset($this->request->post['weight_class_id'])) {
$dta ['weight_class_id'] = $this->request-
>post['weight_class_id'];
} elseif (!empty($product_info)) {
$dta ['weight_class_id'] = $product_info['weight_class_id'];
} else {
$dta ['weight_class_id'] = $this->config-
>get('config_weight_class_id');}
if (isset($this->request->post['length'])) {
$dta ['length'] = $this->request->post['length'];
} elseif (!empty($product_info)) {
$dta ['length'] = $product_info['length'];
} else {
$dta ['length'] = '';}
if (isset($this->request->post['width'])) {
$dta ['width'] = $this->request->post['width'];
} elseif (!empty($product_info)) {
$dta ['width'] = $product_info['width'];
} else {
$dta ['width'] = '';}
if (isset($this->request->post['height'])) {
$dta ['height'] = $this->request->post['height'];
} elseif (!empty($product_info)) {
$dta ['height'] = $product_info['height'];
} else {
$dta ['height'] = '';}
$this-> lod -> modl ('localisation/length_class');
$dta ['length_classes'] = $this-> modl
_localisation_length_class->getLengthClasses();
if (isset($this->request->post['length_class_id'])) {
$dta ['length_class_id'] = $this->request-
>post['length_class_id'];
} elseif (!empty($product_info)) {
$dta ['length_class_id'] = $product_info['length_class_id'];
} else {
$dta ['length_class_id'] = $this->config-
>get('config_length_class_id');
}
$this-> lod -> modl ('catalog/manufacturer');
$dta ['manufacturers'] = $this-> modl _catalog_manufacturer-
>getManufacturers();
if (isset($this->request->post['manufacturer_id'])) {
$dta ['manufacturer_id'] = $this->request-
>post['manufacturer_id'];
} elseif (!empty($product_info)) {
$dta ['manufacturer_id'] = $product_info['manufacturer_id'];
} else {
105
$dta ['manufacturer_id'] = 0;
}
if (isset($this->request->post['manufacturer'])) {
$dta ['manufacturer'] = $this->request->post['manufacturer'];
} elseif (!empty($product_info)) {
$manufacturer_info = $this-> modl _catalog_manufacturer-
>getManufacturer($product_info['manufacturer_id']);
if ($manufacturer_info) {
$dta ['manufacturer'] = $manufacturer_info['name'];
} else {
$dta ['manufacturer'] = '';
}
} else {
$dta ['manufacturer'] = '';
}
// Categories
$this-> lod -> modl ('catalog/category');
if (isset($this->request->post['product_category'])) {
$categories = $this->request->post['product_category'];
} elseif (isset($this->request->get['product_id'])) {
$categories = $this-> modl _catalog_product-
>getProductCategories($this->request->get['product_id']);
} else {
$categories = array();
}
$filter_data = array(
'sort' => 'name',
'order' => 'ASC'
);
$dta ['categories'] = $this-> modl _catalog_category-
>getCategories($filter_data);
// Filters
if (isset($this->request->post['main_category_id'])) {
$dta ['main_category_id'] = $this->request-
>post['main_category_id'];
} elseif (isset($product_info)) {
$dta ['main_category_id'] = $this-> modl _catalog_product-
>getProductMainCategoryId($this->request->get['product_id']);
} else {
$dta ['main_category_id'] = 0;}
if (isset($this->request->post['product_category'])) {
$dta ['product_category'] = $this->request-
>post['product_category'];
} elseif (isset($this->request->get['product_id'])) {
$dta ['product_category'] = $this-> modl _catalog_product-
>getProductCategories($this->request->get['product_id']);
} else {
$dta ['product_category'] = array();}
$this-> lod -> modl ('catalog/filter');
if (isset($this->request->post['product_filter'])) {
$filters = $this->request->post['product_filter'];
} elseif (isset($this->request->get['product_id'])) {
106
$filters = $this-> modl _catalog_product-
>getProductFilters($this->request->get['product_id']);
} else {
$filters = array();}
$dta ['product_filters'] = array();
foreach ($filters as $filter_id) {
$filter_info = $this-> modl _catalog_filter-
>getFilter($filter_id);
if ($filter_info) {
$dta ['product_filters'][] = array(
'filter_id' => $filter_info['filter_id'],
'name' => $filter_info['group'] . ' > ' .
$filter_info['name']);}}
// Attributes
$this-> lod -> modl ('catalog/attribute');
if (isset($this->request->post['product_attribute'])) {
$product_attributes = $this->request->post['product_attribute'];
} elseif (isset($this->request->get['product_id'])) {
$product_attributes = $this-> modl _catalog_product-
>getProductAttributes($this->request->get['product_id']);
} else {
$product_attributes = array();}
$dta ['product_attributes'] = array();
foreach ($product_attributes as $product_attribute) {
$attribute_info = $this-> modl _catalog_attribute-
>getAttribute($product_attribute['attribute_id']);
if ($attribute_info) {
$dta ['product_attributes'][] = array(
'attribute_id' =>
$product_attribute['attribute_id'],
'name' => $attribute_info['name'],
'product_attribute_description' =>
$product_attribute['product_attribute_description']);}}
// Options
$this-> lod -> modl ('catalog/option');
if (isset($this->request->post['product_option'])) {
$product_options = $this->request->post['product_option'];
} elseif (isset($this->request->get['product_id'])) {
$product_options = $this-> modl _catalog_product-
>getProductOptions($this->request->get['product_id']);
} else {
$product_options = array();}
$dta ['product_options'] = array();
foreach ($product_options as $product_option) {
$product_option_value_data = array();
if (isset($product_option['product_option_value'])) {
foreach ($product_option['product_option_value'] as
$product_option_value) {
$product_option_value_data[] = array(

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
IPO - инструмент финансирования деятельности организации. На примере ПАО «Нефтяная компания «Лукойл»
PR как средство продвижения организации (на примере ПАО "Тамбовский завод "Комсомолец им. Н.С. Артемова")
PR-коммуникации в сфере общественного питания (на примере кафе-кондитерской «Cream Cheese»)
SMM как средство повышения эффективности работы учреждений социокультурной сферы (на примере Малого театра)