<?xml version="1.0" encoding="utf-8"?>
<modification>
  <name>Coloring Theme Modification</name>
	<code>coloring</code>
  <version>1.6.6</version>
  <author>xds</author>

	<file path="catalog/controller/common/home.php">
		<operation>
      <search><![CDATA[
				$data['header'] = $this->load->controller('common/header');
      ]]></search>
      <add position="before"><![CDATA[

				$this->load->model('setting/setting');
			
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				$this->load->model('extension/module');
				
				$new_modules = array();
				$data['new_modules_1'] = array();
				$data['new_modules_2'] = array();
				$data['new_modules_3'] = array();
				$data['new_modules_4'] = array();
				$data['new_modules_5'] = array();
				
				
				if (isset($coloring['t1_new_home_layout_module'])) {
					$new_modules = $coloring['t1_new_home_layout_module'];
				}
				
				
				$data['hide_home_menu'] = false;
				
				if (isset($coloring['t1_hide_home_menu'])) {
					$data['hide_home_menu'] = $coloring['t1_hide_home_menu'];
				}
				
				
				foreach ($new_modules as $new_module) {
				
					if ($new_module['position'] == 'position_1') {
						$part = explode('.', $new_module['code']);
						if (isset($part[0]) && $this->config->get($part[0] . '_status')) {
							$data['new_modules_1'][] = array(
								'module'     => $this->load->controller('extension/module/' . $part[0]),
								'sort_order' => $new_module['sort_order']
							);
						}
						if (isset($part[1])) {
							$setting_info = $this->model_extension_module->getModule($part[1]);
							if ($setting_info && $setting_info['status']) {
								$data['new_modules_1'][] = array(
									'module'     => $this->load->controller('extension/module/' . $part[0], $setting_info),
									'sort_order' => $new_module['sort_order']
								);
							}
						}
					} elseif ($new_module['position'] == 'position_2') {
						$part = explode('.', $new_module['code']);
						if (isset($part[0]) && $this->config->get($part[0] . '_status')) {
							$data['new_modules_2'][] = array(
								'module'     => $this->load->controller('extension/module/' . $part[0]),
								'sort_order' => $new_module['sort_order']
							);
						}
						if (isset($part[1])) {
							$setting_info = $this->model_extension_module->getModule($part[1]);
							if ($setting_info && $setting_info['status']) {
								$data['new_modules_2'][] = array(
									'module'     => $this->load->controller('extension/module/' . $part[0], $setting_info),
									'sort_order' => $new_module['sort_order']
								);
							}
						}
					} elseif ($new_module['position'] == 'position_3') {
						$part = explode('.', $new_module['code']);
						if (isset($part[0]) && $this->config->get($part[0] . '_status')) {
							$data['new_modules_3'][] = array(
								'module'     => $this->load->controller('extension/module/' . $part[0]),
								'sort_order' => $new_module['sort_order']
							);

						}
						if (isset($part[1])) {
							$setting_info = $this->model_extension_module->getModule($part[1]);
							if ($setting_info && $setting_info['status']) {
								$data['new_modules_3'][] = array(
									'module'     => $this->load->controller('extension/module/' . $part[0], $setting_info),
									'sort_order' => $new_module['sort_order']
								);

							}
						}
					} elseif($new_module['position'] == 'position_4') {
						$part = explode('.', $new_module['code']);
						if (isset($part[0]) && $this->config->get($part[0] . '_status')) {
							$data['new_modules_4'][] = array(
								'module'     => $this->load->controller('extension/module/' . $part[0]),
								'sort_order' => $new_module['sort_order']
							);

						}
						if (isset($part[1])) {
							$setting_info = $this->model_extension_module->getModule($part[1]);
							if ($setting_info && $setting_info['status']) {
								$data['new_modules_4'][] = array(
									'module'     => $this->load->controller('extension/module/' . $part[0], $setting_info),
									'sort_order' => $new_module['sort_order']
								);

							}
						}
					} else {
						$part = explode('.', $new_module['code']);
						if (isset($part[0]) && $this->config->get($part[0] . '_status')) {
							$data['new_modules_5'][] = array(
								'module'     => $this->load->controller('extension/module/' . $part[0]),
								'sort_order' => $new_module['sort_order']
							);

						}
						if (isset($part[1])) {
							$setting_info = $this->model_extension_module->getModule($part[1]);
							if ($setting_info && $setting_info['status']) {
								$data['new_modules_5'][] = array(
									'module'     => $this->load->controller('extension/module/' . $part[0], $setting_info),
									'sort_order' => $new_module['sort_order']
								);

							}
						}
					}
					
					if (!empty($data['new_modules_1'])){
						foreach ($data['new_modules_1'] as $key => $value) {
							$sort_new_modules_1[$key] = $value['sort_order'];
						} 
						array_multisort($sort_new_modules_1, SORT_ASC, $data['new_modules_1']);
					}
					if (!empty($data['new_modules_2'])){
						foreach ($data['new_modules_2'] as $key => $value) {
							$sort_new_modules_2[$key] = $value['sort_order'];
						} 
						array_multisort($sort_new_modules_2, SORT_ASC, $data['new_modules_2']);
					}
					if (!empty($data['new_modules_3'])){
						foreach ($data['new_modules_3'] as $key => $value) {
							$sort_new_modules_3[$key] = $value['sort_order'];
						} 
						array_multisort($sort_new_modules_3, SORT_ASC, $data['new_modules_3']);
					}
					if (!empty($data['new_modules_4'])){
						foreach ($data['new_modules_4'] as $key => $value) {
							$sort_new_modules_4[$key] = $value['sort_order'];
						} 
						array_multisort($sort_new_modules_4, SORT_ASC, $data['new_modules_4']);
					}
					if (!empty($data['new_modules_5'])){
						foreach ($data['new_modules_5'] as $key => $value) {
							$sort_new_modules_5[$key] = $value['sort_order'];
						} 
						array_multisort($sort_new_modules_5, SORT_ASC, $data['new_modules_5']);
					}
					
				}
				
				
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/common/column_left.php">
		<operation>
      <search><![CDATA[
				$this->load->model('design/layout');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$this->load->language('coloring/coloring');
				
				$data['button_text'] = $this->language->get('col_left_text');
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_col_left_button_text'][$language_id]) && !empty($coloring['t1_col_left_button_text'][$language_id])) {
					$data['button_text'] = $coloring['t1_col_left_button_text'][$language_id];
				}
				
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/common/column_right.php">
		<operation>
      <search><![CDATA[
				$this->load->model('design/layout');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$this->load->language('coloring/coloring');
				
				$data['button_text'] = $this->language->get('col_right_text');
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_col_right_button_text'][$language_id]) && !empty($coloring['t1_col_right_button_text'][$language_id])) {
					$data['button_text'] = $coloring['t1_col_right_button_text'][$language_id];
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/common/search.php">
		<operation>
      <search><![CDATA[
				$this->load->language('common/search');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$data['search_text_category'] = $this->language->get('search_text_category');
				$data['search_text_category_alt'] = $this->language->get('search_text_category');
				
        if (isset($this->request->get['category_id'])) {
					$category_id = $this->request->get['category_id'];
				} else {
					$category_id = 0;
				}
				
				$data['category_id'] = $category_id;
				
				$data['search_categories'] = array();
				$search_categories_1 = $this->model_catalog_category->getCategories(0);
				foreach ($search_categories_1 as $search_category) {
					$data['search_categories'][] = array(
						'category_id' => $search_category['category_id'],
						'name'        => $search_category['name']
					);
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/common/header.php">
		<operation>
      <search><![CDATA[
				$this->load->language('common/header');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				$this->load->model('setting/setting');
				$this->load->model('tool/image');

				$data['header_email_text'] = $this->language->get('header_email_text');
				$data['header_phone_text'] = $this->language->get('header_phone_text');	
				$data['header_address_text'] = $this->language->get('header_address_text');	
				
				$data['header_product_compare'] = sprintf($this->language->get('coloring_product_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));		

				$data['header_product_compare_link'] = $this->url->link('product/compare');
				
				$data['language_id'] = $this->config->get('config_language_id');
				$language_id = $this->config->get('config_language_id');

				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				$data['stylesheet'] = $coloring;
				
				$data['header_menu'] = array();
				
				$data['skin'] = false;
				
				if (isset($coloring['t1_skin'])) {
					$data['skin'] = $coloring['t1_skin'];
				}
				
				$data['header_menu_toggle'] = false;

				if (isset($coloring['t1_main_menu_toggle'])) {
					$data['header_menu_toggle'] = $coloring['t1_main_menu_toggle'];
				}
				
				if (isset($coloring['t1_main_menu_item'])) {
					$data['header_menu'] = $coloring['t1_main_menu_item'];
				}
				
				if (!empty($data['header_menu'])){
					foreach ($data['header_menu'] as $key => $value) {
						$sort_heder_menu[$key] = $value['sort'];
					} 
					array_multisort($sort_heder_menu, SORT_ASC, $data['header_menu']);
				}

				$data['help_menu_text'] = $this->language->get('header_help_support');
				
				if (isset($coloring['t1_help_menu_text'])) {
					if ($coloring['t1_help_menu_text'][$language_id] != '') {
						$data['help_menu_text'] = $coloring['t1_help_menu_text'][$language_id];
					}
				}
				
				$data['help_menu'] = array();
				$data['help_menu_toggle'] = false;
				$data['help_menu_left'] = false;
				
				if (isset($coloring['t1_help_menu_toggle'])) {
					$data['help_menu_toggle'] = $coloring['t1_help_menu_toggle'];
				}
				if (isset($coloring['t1_help_menu_left']) && $coloring['t1_help_menu_left']) {
					$data['help_menu_left'] = true;
				}
				
				if (isset($coloring['t1_help_menu_item'])) {
					$data['help_menu'] = $coloring['t1_help_menu_item'];
				}
				
				if (!empty($data['help_menu'])){
					foreach ($data['help_menu'] as $key => $value) {
						$sort_help_menu[$key] = $value['sort'];
					} 
					array_multisort($sort_help_menu, SORT_ASC, $data['help_menu']);
				}
				
				
				$data['category_mask'] = '';
				
				if (isset($coloring['t1_category_mask_toggle'])) {
					$data['category_mask'] = $coloring['t1_category_mask_toggle'];
				}
				
				
				$data['hide_home_menu'] = false;
				
				if (isset($coloring['t1_hide_home_menu'])) {
					$data['hide_home_menu'] = $coloring['t1_hide_home_menu'];
				}
				
				
				$data['sub_no_fullheight'] = false;
				
				if (isset($coloring['t1_category_no_full_height_submenu'])) {
					$data['sub_no_fullheight'] = $coloring['t1_category_no_full_height_submenu'];
				}
				
				
				
				$data['category_third_level_toggle'] = false;
				
				if (isset($coloring['t1_category_third_level_toggle'])) {
					$data['category_third_level_toggle'] = $coloring['t1_category_third_level_toggle'];
				}
				
				$data['category_third_level_limit'] = 5;
				
				if (isset($coloring['t1_category_third_level_limit'])) {
					$data['category_third_level_limit'] = $coloring['t1_category_third_level_limit'];
				}
				
				
				
				
				$category_icons = array();
				
				if (isset($coloring['t1_category_icon'])) {
					$category_icons = $coloring['t1_category_icon'];
				}
				
				
				$data['add_category_menu'] = array();
				$data['add_category_menu_toggle'] = false;
				
				if (isset($coloring['t1_add_cat_links_toggle'])) {
					$data['add_category_menu_toggle'] = $coloring['t1_add_cat_links_toggle'];
				}
				
				$results = array();
				
				if (isset($coloring['t1_add_cat_links_item'])) {
					$results = $coloring['t1_add_cat_links_item'];
				}

				$data['add_category_menu'] = array();
		
				foreach ($results as $result) {
					
					if (is_file(DIR_IMAGE . $result['image_peace'])) {
						$image_peace = $result['image_peace'];
					} else {
						$image_peace = '';
					}
					
					if (is_file(DIR_IMAGE . $result['image_hover'])) {
						$image_hover = $result['image_hover'];
					} else {
						$image_hover = '';
					}
					
					$data['add_category_menu'][] = array(
							'image_peace' => $this->model_tool_image->resize($image_peace, 24, 24),
							'image_hover' => $this->model_tool_image->resize($image_hover, 24, 24),
							'title'			  => $result['title'],
							'link'  			=> $result['link'],
							'position'		=> $result['position'],
							'sort'  			=> $result['sort']
						);	
					}
				
				
				
				
				
				
				
				if (!empty($data['add_category_menu'])){
					foreach ($data['add_category_menu'] as $key => $value) {
						$sort_add_category_menu[$key] = $value['sort'];
					} 
					array_multisort($sort_add_category_menu, SORT_ASC, $data['add_category_menu']);
				}
				
				$data['header_contacts_toggle'] = false;
				
				if (isset($coloring['t1_contact_main_toggle'])) {
					$data['header_contacts_toggle'] = $coloring['t1_contact_main_toggle'];
				}
				
				$data['callback_form_toggle'] = false;
				
				if (isset($coloring['t1_callback_form_toggle'])) {
					$data['callback_form_toggle'] = $coloring['t1_callback_form_toggle'];
				}
				
				$data['callback_form_text'] = "";
				
				if (isset($coloring['t1_callback_form_button_text'])) {
					$data['callback_form_text'] = $coloring['t1_callback_form_button_text'];
				}
				
				$data['callback_form_link'] = $this->url->link('extension/module/xds_callback');
				
				$data['header_add_contacts_toggle'] = false;
				
				if (isset($coloring['t1_contact_add_toggle'])) {
					$data['header_add_contacts_toggle'] = $coloring['t1_contact_add_toggle'];
				}

				$data['main_telephone'] = "";
				
				if (isset($coloring['t1_contact_main_phone'])) {
					$data['main_telephone'] = $coloring['t1_contact_main_phone'];
				}
				
				$data['main_telephone2'] = "";
				
				if (isset($coloring['t1_contact_main_phone2'])) {
					$data['main_telephone2'] = $coloring['t1_contact_main_phone2'];
				}
				
				$data['contact_hint'] = "";
				
				if (isset($coloring['t1_contact_hint'])) {
					$data['contact_hint'] = $coloring['t1_contact_hint'];
				}
				
				$data['contact_schedule'] = "";
				
				if (isset($coloring['t1_schedule'])) {
					$data['contact_schedule'] = $coloring['t1_schedule'];
				}
				
				$data['contact_email'] = "";
				
				if (isset($coloring['t1_contact_email'])) {
					$data['contact_email'] = $coloring['t1_contact_email'];
				}

				$data['all_phones'] = array();
				
				if (isset($coloring['t1_header_contact'])) {
					$data['all_phones'] = $coloring['t1_header_contact'];
				}
				
				if (!empty($data['all_phones'])){
					foreach ($data['all_phones'] as $key => $value) {
						$sort_all_phones[$key] = $value['sort'];
					} 
					array_multisort($sort_all_phones, SORT_ASC, $data['all_phones']);
				}
				
				$data['other_contacts'] = array();
				
				if (isset($coloring['t1_additional_contact'])) {
					$data['other_contacts'] = $coloring['t1_additional_contact'];
				}
				
				if (!empty($data['other_contacts'])){
					foreach ($data['other_contacts'] as $key => $value) {
						$sort_other_contacts[$key] = $value['sort'];
					} 
					array_multisort($sort_other_contacts, SORT_ASC, $data['other_contacts']);
				}
				
				$data['user_name'] = $this->customer->getFirstName();
				
				$data['og_url_coloring'] = (isset($this->request->server['HTTPS']) ? HTTPS_SERVER : HTTP_SERVER) . substr($this->request->server['REQUEST_URI'], 1, (strlen($this->request->server['REQUEST_URI'])-1));
				
				
				
				$data['special_sticker'] = false;
				$data['special_sticker_color'] = false;
				$data['special_sticker_t_color'] = false;
				
				$data['ups_sticker'] = false;
				$data['ups_sticker_color'] = false;
				$data['ups_sticker_t_color'] = false;

				$data['ean_sticker'] = false;
				$data['ean_sticker_color'] = false;
				$data['ean_sticker_t_color'] = false;
				
				$data['jan_sticker'] = false;
				$data['jan_sticker_color'] = false;
				$data['jan_sticker_t_color'] = false;
				
				$data['isbn_sticker'] = false;
				$data['isbn_sticker_color'] = false;
				$data['isbn_sticker_t_color'] = false;
				
				$data['mpn_sticker'] = false;
				$data['mpn_sticker_color'] = false;
				$data['mpn_sticker_t_color'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_special_sticker_color'])) {
					$data['special_sticker_color'] = $coloring['t1_special_sticker_color'];
				}
				if (isset($coloring['t1_special_sticker_t_color'])) {
					$data['special_sticker_t_color'] = $coloring['t1_special_sticker_t_color'];
				}
				
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ups_sticker_color'])) {
					$data['ups_sticker_color'] = $coloring['t1_ups_sticker_color'];
				}
				if (isset($coloring['t1_ups_sticker_t_color'])) {
					$data['ups_sticker_t_color'] = $coloring['t1_ups_sticker_t_color'];
				}
				
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_ean_sticker_color'])) {
					$data['ean_sticker_color'] = $coloring['t1_ean_sticker_color'];
				}
				if (isset($coloring['t1_ean_sticker_t_color'])) {
					$data['ean_sticker_t_color'] = $coloring['t1_ean_sticker_t_color'];
				}
				
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_jan_sticker_color'])) {
					$data['jan_sticker_color'] = $coloring['t1_jan_sticker_color'];
				}
				if (isset($coloring['t1_jan_sticker_t_color'])) {
					$data['jan_sticker_t_color'] = $coloring['t1_jan_sticker_t_color'];
				}
				
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_ups_sticker_color'])) {
					$data['isbn_sticker_color'] = $coloring['t1_isbn_sticker_color'];
				}
				if (isset($coloring['t1_ups_sticker_t_color'])) {
					$data['isbn_sticker_t_color'] = $coloring['t1_isbn_sticker_t_color'];
				}
				
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker_color'])) {
					$data['mpn_sticker_color'] = $coloring['t1_mpn_sticker_color'];
				}
				if (isset($coloring['t1_mpn_sticker_t_color'])) {
					$data['mpn_sticker_t_color'] = $coloring['t1_mpn_sticker_t_color'];
				}
				
				
				
				

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				foreach ($categories as $category) {
      ]]></search>
      <add position="after"><![CDATA[
				if (isset($category_icons[$category['category_id']]['peace']) && is_file(DIR_IMAGE . $category_icons[$category['category_id']]['peace'])) {
					$icon_peace = $this->model_tool_image->resize($category_icons[$category['category_id']]['peace'], 24, 24);
				} else {
					$icon_peace = '';
				}
				
				if (isset($category_icons[$category['category_id']]['hover']) && is_file(DIR_IMAGE . $category_icons[$category['category_id']]['hover'])) {
					$icon_hover = $this->model_tool_image->resize($category_icons[$category['category_id']]['hover'], 24, 24);
				} else {
					$icon_hover = '';
				}
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['categories'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'category_id' => $category['category_id'],
				'icon_peace' => $icon_peace,
				'icon_hover' => $icon_hover,

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
      ]]></search>
      <add position="after"><![CDATA[
				$data['text_wishlist'] = sprintf($this->language->get('coloring_text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
      ]]></search>
      <add position="after"><![CDATA[
				$data['text_wishlist'] = sprintf($this->language->get('coloring_text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				'name'  => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
      ]]></search>
      <add position="replace"><![CDATA[
				'name'  => $child['name'] . ($this->config->get('config_product_count') ? ' <span class="count">' . $this->model_catalog_product->getTotalProducts($filter_data) . '</span>' : ''),
				]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				foreach ($children as $child) {
      ]]></search>
      <add position="after"><![CDATA[
				$children2_data = array();
				$children2 = $this->model_catalog_category->getCategories($child['category_id']);
				foreach ($children2 as $child2) {
					$filter2_data = array(
						'filter_category_id'  => $child2['category_id'],
						'filter_sub_category' => true
					);
					$children2_data[] = array(
						'name'  => $child2['name'] . ($this->config->get('config_product_count') ? ' <span class="count">' . $this->model_catalog_product->getTotalProducts($filter2_data) . '</span>' : ''),
						'href'  => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'].'_'. $child2['category_id'])
					);
				}
				
				
				if (isset($category_icons[$child['category_id']]['peace']) && is_file(DIR_IMAGE . $category_icons[$child['category_id']]['peace'])) {
					$child_icon_peace = $this->model_tool_image->resize($category_icons[$child['category_id']]['peace'], 24, 24);
				} else {
					$child_icon_peace = '';
				}
				
				if (isset($category_icons[$child['category_id']]['hover']) && is_file(DIR_IMAGE . $category_icons[$child['category_id']]['hover'])) {
					$child_icon_hover = $this->model_tool_image->resize($category_icons[$child['category_id']]['hover'], 24, 24);
				} else {
					$child_icon_hover = '';
				}
				
				
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$children_data[] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'icon_peace' => $child_icon_peace,
				'icon_hover' => $child_icon_hover,
				'category_id' => $child['category_id'],
				'children2'    => $children2_data,
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/common/cart.php">
		<operation>
      <search><![CDATA[
				$this->load->language('common/cart');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['text_items'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
      ]]></search>
      <add position="after"><![CDATA[
				$data['text_items_new'] = sprintf($this->language->get('coloring_text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
				
				$data['text_items_popup'] = sprintf($this->language->get('coloring_text_items_popup'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
				
				$data['text_popup_cart'] = $this->language->get('text_popup_cart');
				$data['text_popup_continue'] = $this->language->get('text_popup_continue');
				$data['text_popup_options'] = $this->language->get('text_popup_options');
      ]]></add>
    </operation>
	</file>
	
	<file path="catalog/controller/common/footer.php"> 
		<operation>
      <search><![CDATA[
				$this->load->language('common/footer');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$this->load->model('setting/setting');
				$this->load->model('design/banner');
				$this->load->model('tool/image');

				$data['language_id'] = $this->config->get('config_language_id');
				
				$data['coloring'] = array();
				$data['coloring'] = $this->model_setting_setting->getSetting('coloring');
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				$pay_icons_banner_id = -99;
				$data['pay_icons_toggle'] = false;
				$data['footer_map_toggle'] = false;
				$data['footer_map'] = array();

				if(!empty($coloring)){
					$pay_icons_banner_id = $coloring['t1_pay_icons_banner_id'];
					$data['pay_icons_toggle'] = $coloring['t1_pay_icons_toggle'];
					$data['footer_map_toggle'] = $coloring['t1_footer_map_toggle'];
					$data['footer_map'] = $coloring['t1_footer_map'];
				}
				
				$data['pay_icons'] = array();
				$pay_icons = $this->model_design_banner->getBanner($pay_icons_banner_id);
				
				foreach ($pay_icons as $pay_icon) {
					if (is_file(DIR_IMAGE . $pay_icon['image'])) {
						$data['pay_icons'][] = array(
							'title' => $pay_icon['title'],
							'link'  => $pay_icon['link'],
							'image' => $this->model_tool_image->resize($pay_icon['image'], 48, 32)
						);
					}
				}				
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y', time()));
      ]]></search>
      <add position="replace"><![CDATA[
				
				$data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y', time())).$this->language->get('theme_powered');
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/product/product.php">
		<operation>
      <search><![CDATA[
				$data['images'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'helper_thumb' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_thumb_width'), $this->config->get($this->config->get('config_theme') . '_image_thumb_height')),
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['images'] = array();
      ]]></search>
      <add position="before"><![CDATA[
			
				if ($product_info['image']) {
					$data['thumb_small'] = $this->model_tool_image->resize($product_info['image'], $this->config->get($this->config->get('config_theme') . '_image_additional_width'), $this->config->get($this->config->get('config_theme') . '_image_additional_height'));
				} else {
					$data['thumb_small'] = '';
				}
			
				$data['img_small'] = $this->config->get($this->config->get('config_theme') . '_image_additional_width').'x'.$this->config->get($this->config->get('config_theme') . '_image_additional_height');
				$data['img_big'] = $this->config->get($this->config->get('config_theme') . '_image_thumb_width').'x'.$this->config->get($this->config->get('config_theme') . '_image_thumb_height');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('catalog/category');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				
				
				$language_id = $this->config->get('config_language_id');
				
				$data['short_description_off'] = '';
				$data['short_attribute_off'] = '';
				$data['social_likes_off'] = '';
				$data['disable_cart_button_text'] = '';
				$data['disable_cart_button'] = '';
				$data['related_product_position'] = '';
			
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				
				
				if (isset($coloring['t1_product_short_description'])) {
					$data['short_description_off'] = $coloring['t1_product_short_description'];
				}
				
				if (isset($coloring['t1_product_short_attributes'])) {
					$data['short_attribute_off'] = $coloring['t1_product_short_attributes'];
				}
				
				if (isset($coloring['t1_product_social_likes'])) {
					$data['social_likes_off'] = $coloring['t1_product_social_likes'];
				}

				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
				
				if (isset($coloring['t1_related_product_position'])) {
					$data['related_product_position'] = $coloring['t1_related_product_position'];
				}

				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}

				$data['currency_code'] = $this->session->data['currency'];
				
				
				
				if (!isset($this->session->data['xds_product_viewed'])) {
  				$this->session->data['xds_product_viewed'] = array();
  			} else {
  				$this->session->data['xds_product_viewed'][] = $this->request->get['product_id'];
  			}
				
				
				
				
				
				
				
				
				
				
				
				
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['text_select'] = $this->language->get('text_select');
      ]]></search>
      <add position="before"><![CDATA[
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
			
				$this->document->addScript('catalog/view/theme/coloring/assets/share/social-likes.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/share/social-likes_birman.css');
				
				
				$this->load->language('coloring/coloring');
				
				$data['product_short_description_text'] = $this->language->get('product_short_description_text');
				$data['product_read_more_text'] = $this->language->get('product_read_more_text');
				$data['product_all_specifications_text'] = $this->language->get('product_all_specifications_text');
				$data['product_required_text'] = $this->language->get('product_required_text');
				$data['product_share_text'] = $this->language->get('product_share_text');
				$data['fastorder_text'] = $this->language->get('fastorder_text');
				
				$data['product_quantity_text'] = sprintf($this->language->get('product_quantity_text'), $product_info['quantity']);

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('tool/image');
      ]]></search>
      <add position="before"><![CDATA[
			
				$data['product_quantity'] = $product_info['quantity'];
				$data['config_stock_display'] = $this->config->get('config_stock_display');
				
				if ($product_info['quantity'] <= 0) {
					$data['product_stock'] = $product_info['stock_status'];
				} else {
					$data['product_stock'] = $this->language->get('text_instock');
				}
				
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;

				if ($product_info['price'] && $product_info['special']) {
					$data['special_sticker_text'] = round(100 - ($product_info['special'] / $product_info['price']) * 100) * (-1);
				} else {
					$data['special_sticker_text'] = false;
				}

				$data['ups_sticker_text'] = $product_info['upc'];
				$data['ean_sticker_text'] = $product_info['ean'];
				$data['jan_sticker_text'] = $product_info['jan'];
				$data['isbn_sticker_text'] = $product_info['isbn'];
				$data['mpn_sticker_text'] = $product_info['mpn'];

				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}

				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}

				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}

				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}

				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}

				
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/product/category.php">
		<operation>
      <search><![CDATA[
				$this->load->language('product/category');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['categories'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'image' => $this->model_tool_image->resize($result['image'], 120, 120),
      ]]></add>
    </operation>
		
		
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		
		
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity' 					  	=> $result['quantity'],
				'reviews'   						=> sprintf($this->language->get('category_reviews_text'), $result['reviews']),
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('tool/image');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$data['subcategory_left'] = '';
				$data['disable_cart_button_text'] = '';
				$data['disable_cart_button'] = '';
				$data['description_position'] = '';
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_left_subcategory'])) {
					$data['subcategory_left'] = $coloring['t1_left_subcategory'];
				}
				
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}

				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
						
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$data['fastorder_text'] = $this->language->get('fastorder_text');

				$data['qview_text'] = $this->language->get('qview_text');
				
				if (isset($coloring['t1_category_description_position'])) {
					$data['description_position'] = $coloring['t1_category_description_position'];
				}
				
				
				
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.model&order=DESC' . $url)
      ]]></search>
      <add position="after" offset="1"><![CDATA[
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_asc'),
					'value' => 'p.quantity-ASC',
					'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.quantity&order=ASC' . $url)
				);
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_desc'),
					'value' => 'p.quantity-DESC',
					'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.quantity&order=DESC' . $url)
				);
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/product/search.php">
		<operation>
      <search><![CDATA[
				$this->load->language('product/search');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
      ]]></add>
    </operation>

		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'reviews'   => sprintf($this->language->get('category_reviews_text'), $result['reviews']),
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('tool/image');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$data['disable_cart_button_text'] = '';
				$data['disable_cart_button'] = '';
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}

				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
						
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$data['fastorder_text'] = $this->language->get('fastorder_text');

				$data['qview_text'] = $this->language->get('qview_text');
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				'href'  => $this->url->link('product/search', 'sort=p.model&order=DESC' . $url)
      ]]></search>
      <add position="after" offset="1"><![CDATA[
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_asc'),
					'value' => 'p.quantity-ASC',
					'href'  => $this->url->link('product/search', '&sort=p.quantity&order=ASC' . $url)
				);
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_desc'),
					'value' => 'p.quantity-DESC',
					'href'  => $this->url->link('product/search', '&sort=p.quantity&order=DESC' . $url)
				);
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/product/special.php">
		<operation>
      <search><![CDATA[
				$this->load->language('product/special');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
      ]]></add>
    </operation>
		
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'reviews'   => sprintf($this->language->get('category_reviews_text'), $result['reviews']),
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('tool/image');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$data['disable_cart_button_text'] = '';
				$data['disable_cart_button'] = '';
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}

				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
						
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$data['fastorder_text'] = $this->language->get('fastorder_text');

				$data['qview_text'] = $this->language->get('qview_text');
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				'href'  => $this->url->link('product/special', 'sort=p.model&order=DESC' . $url)
      ]]></search>
      <add position="after" offset="1"><![CDATA[
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_asc'),
					'value' => 'p.quantity-ASC',
					'href'  => $this->url->link('product/special', '&sort=p.quantity&order=ASC' . $url)
				);
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_desc'),
					'value' => 'p.quantity-DESC',
					'href'  => $this->url->link('product/special', '&sort=p.quantity&order=DESC' . $url)
				);
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/product/manufacturer.php">
		<operation>
      <search><![CDATA[
				$this->load->language('product/manufacturer');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
      ]]></add>
    </operation>

		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'reviews'   => sprintf($this->language->get('category_reviews_text'), $result['reviews']),
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->load->model('tool/image');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				
				$language_id = $this->config->get('config_language_id');
				
				$data['disable_cart_button_text'] = '';
				$data['disable_cart_button'] = '';
				
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}

				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
						
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$data['fastorder_text'] = $this->language->get('fastorder_text');

				$data['qview_text'] = $this->language->get('qview_text');
				
				
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
				
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				'href'  => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . '&sort=p.model&order=DESC' . $url)
      ]]></search>
      <add position="after" offset="1"><![CDATA[
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_asc'),
					'value' => 'p.quantity-ASC',
					'href'  => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . '&sort=p.quantity&order=ASC' . $url)
				);
				$data['sorts'][] = array(
					'text'  => $this->language->get('text_quantity_desc'),
					'value' => 'p.quantity-DESC',
					'href'  => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . '&sort=p.quantity&order=DESC' . $url)
				);
      ]]></add>
    </operation>
  </file>
	
  <file path="catalog/controller/product/compare.php">
		<operation>
      <search><![CDATA[
				$json['total'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				$json['total'] = sprintf($this->language->get('coloring_product_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));
      ]]></add>
    </operation>
	</file>
	
	<file path="catalog/controller/extension/module/carousel.php">
		<operation>
      <search><![CDATA[
				$this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.carousel.css');
      ]]></search>
      <add position="replace"><![CDATA[
        $this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->document->addScript('catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js');
      ]]></search>
      <add position="replace"><![CDATA[
        $this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$data['alt_text'] = $setting['name'];
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/slideshow.php">
		<operation>
      <search><![CDATA[
				$this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.carousel.css');
      ]]></search>
      <add position="replace"><![CDATA[
        $this->document->addStyle('catalog/view/theme/coloring/assets/nivo-slider/nivo-slider.css');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->document->addScript('catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js');
      ]]></search>
      <add position="replace"><![CDATA[
        $this->document->addScript('catalog/view/theme/coloring/assets/nivo-slider/jquery.nivo.slider.pack.js');
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/featured.php">
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($product_info['price'] && $product_info['special']) {
					$special_sticker_text = round(100 - ($product_info['special'] / $product_info['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $product_info['upc'];
				$ean_sticker_text = $product_info['ean'];
				$jan_sticker_text = $product_info['jan'];
				$isbn_sticker_text = $product_info['isbn'];
				$mpn_sticker_text = $product_info['mpn'];

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $product_info['quantity'],
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				$language_id = $this->config->get('config_language_id');
				$data['disable_cart_button'] = false;
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}
				$data['disable_cart_button_text'] = "";
				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
				
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$this->load->language('coloring/coloring');
				$data['qview_text'] = $this->language->get('qview_text');
				$data['fastorder_text'] = $this->language->get('fastorder_text');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
				
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/latest.php">
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				$language_id = $this->config->get('config_language_id');
				$data['disable_cart_button'] = false;
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}
				$data['disable_cart_button_text'] = "";
				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
				
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$this->load->language('coloring/coloring');
				$data['qview_text'] = $this->language->get('qview_text');
				$data['fastorder_text'] = $this->language->get('fastorder_text');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/special.php">
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				$language_id = $this->config->get('config_language_id');
				$data['disable_cart_button'] = false;
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}
				$data['disable_cart_button_text'] = "";
				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
				
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$this->load->language('coloring/coloring');
				$data['qview_text'] = $this->language->get('qview_text');
				$data['fastorder_text'] = $this->language->get('fastorder_text');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/bestseller.php">
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="before"><![CDATA[
				
				if ($result['price'] && $result['special']) {
					$special_sticker_text = round(100 - ($result['special'] / $result['price']) * 100) * (-1);
				} else {
					$special_sticker_text = false;
				}

				$ups_sticker_text = $result['upc'];
				$ean_sticker_text = $result['ean'];
				$jan_sticker_text = $result['jan'];
				$isbn_sticker_text = $result['isbn'];
				$mpn_sticker_text = $result['mpn'];

      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['products'][] = array(
      ]]></search>
      <add position="after"><![CDATA[
				'quantity'  => $result['quantity'],
				'special_sticker_text'  => $special_sticker_text,
				'ups_sticker_text'			=> $ups_sticker_text,
				'ean_sticker_text' 			=> $ean_sticker_text,
				'jan_sticker_text' 			=> $jan_sticker_text,
				'isbn_sticker_text' 		=> $isbn_sticker_text,
				'mpn_sticker_text'			=> $mpn_sticker_text,
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->model('setting/setting');
				$coloring = array();
				$coloring = $this->model_setting_setting->getSetting('coloring', $this->config->get('config_store_id'));
				$language_id = $this->config->get('config_language_id');
				$data['disable_cart_button'] = false;
				if (isset($coloring['t1_disable_cart_button'])) {
					$data['disable_cart_button'] = $coloring['t1_disable_cart_button'];
				}
				$data['disable_cart_button_text'] = "";
				if (isset($coloring['t1_disable_cart_button_text'])) {
					$data['disable_cart_button_text'] = $coloring['t1_disable_cart_button_text'][$language_id];
				}
				
				$data['on_off_qview'] = false;
				if (isset($coloring['t1_on_off_qview'])) {
					$data['on_off_qview'] = $coloring['t1_on_off_qview'];
				}
				
				
				$data['on_off_fastorder'] = false;
				if (isset($coloring['t1_on_off_fastorder'])) {
					$data['on_off_fastorder'] = $coloring['t1_on_off_fastorder'];
				}
				
				$data['on_off_fastorder_out_of_stok'] = false;
				if (isset($coloring['t1_on_off_fastorder_out_of_stok'])) {
					$data['on_off_fastorder_out_of_stok'] = $coloring['t1_on_off_fastorder_out_of_stok'];
				}
				
				$data['second_button'] = false;
				if (isset($coloring['t1_second_button'])) {
					$data['second_button'] = $coloring['t1_second_button'];
				}
				
				$this->load->language('coloring/coloring');
				$data['qview_text'] = $this->language->get('qview_text');
				$data['fastorder_text'] = $this->language->get('fastorder_text');
				
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.theme.css');
				
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment.js');
				$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
				$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');
				
				$data['special_sticker'] = false;
				$data['ups_sticker'] = false;
				$data['ean_sticker'] = false;
				$data['jan_sticker'] = false;
				$data['isbn_sticker'] = false;
				$data['mpn_sticker'] = false;
				
				
				if (isset($coloring['t1_special_sticker'])) {
					$data['special_sticker'] = $coloring['t1_special_sticker'];
				}
				if (isset($coloring['t1_ups_sticker'])) {
					$data['ups_sticker'] = $coloring['t1_ups_sticker'];
				}
				if (isset($coloring['t1_ean_sticker'])) {
					$data['ean_sticker'] = $coloring['t1_ean_sticker'];
				}
				if (isset($coloring['t1_jan_sticker'])) {
					$data['jan_sticker'] = $coloring['t1_jan_sticker'];
				}
				if (isset($coloring['t1_isbn_sticker'])) {
					$data['isbn_sticker'] = $coloring['t1_isbn_sticker'];
				}
				if (isset($coloring['t1_mpn_sticker'])) {
					$data['mpn_sticker'] = $coloring['t1_mpn_sticker'];
				}
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/banner.php">
		<operation>
      <search><![CDATA[
				$this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.carousel.css');
      ]]></search>
      <add position="replace"><![CDATA[
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.css');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.transitions.css');
      ]]></search>
      <add position="replace"><![CDATA[
				$this->document->addStyle('catalog/view/theme/coloring/assets/owl-carousel/owl.transitions.css');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$this->document->addScript('catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js');
      ]]></search>
      <add position="replace"><![CDATA[
				$this->document->addScript('catalog/view/theme/coloring/assets/owl-carousel/owl.carousel.min.js');
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/extension/module/filter.php">
		<operation>
      <search><![CDATA[
				'name'      => $filter['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : '')
      ]]></search>
      <add position="replace"><![CDATA[
				'name'      => $filter['name'],
				'total' => $this->config->get('config_product_count') ? '' . $this->model_catalog_product->getTotalProducts($filter_data) . '' : ''
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/account/wishlist.php">
		<operation>
      <search><![CDATA[
				$json['total'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				$json['total'] = sprintf($this->language->get('coloring_text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$json['total'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				$json['total'] = sprintf($this->language->get('coloring_text_wishlist'), $this->model_account_wishlist->getTotalWishlist());
      ]]></add>
    </operation>
	</file>
	
	<file path="catalog/controller/account/account.php">
		<operation>
      <search><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
				$this->load->model('account/order');
				
				$data['user_name'] = $this->customer->getFirstName().' '.$this->customer->getLastName();
				$data['user_balance'] = $this->currency->format($this->customer->getBalance(), $this->session->data['currency']);
				$data['user_points'] = (int)$this->customer->getRewardPoints();
				$data['user_order_total'] = $this->model_account_order->getTotalOrders();
				
				$this->load->model('account/wishlist');
				$data['user_wishlist_total'] = $this->model_account_wishlist->getTotalWishlist();
				
				$data['text_user_balance'] = $this->language->get('text_user_balance');
				$data['text_user_points'] = $this->language->get('text_user_points');
				$data['text_user_order_total'] = $this->language->get('text_user_order_total');
				$data['text_user_wishlist_total'] = $this->language->get('text_user_wishlist_total');
				
				$data['logout'] = $this->url->link('account/logout', '', 'SSL');
				$data['text_logout'] = $this->language->get('text_logout');
      ]]></add>
    </operation>
  </file>
	
	<file path="catalog/controller/checkout/cart.php">
		<operation>
      <search><![CDATA[
				$this->load->language('checkout/cart');
      ]]></search>
      <add position="after"><![CDATA[
				$this->load->language('coloring/coloring');
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				$json['total'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
      ]]></search>
      <add position="after"><![CDATA[
				$json['total_new'] = sprintf($this->language->get('coloring_text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
      ]]></add>
    </operation>
		<operation>
      <search><![CDATA[
				public function remove() {
      ]]></search>
      <add position="before"><![CDATA[
				public function editPopup() {
					$this->load->language('checkout/cart');
					$this->load->language('coloring/coloring');
					$this->load->model('tool/image');

					$json = array();

					// Update
					if (isset($this->request->post['quantity']) && isset($this->request->post['key'])) {
	
						$this->cart->update($this->request->post['key'], $this->request->post['quantity']);

						unset($this->session->data['shipping_method']);
						unset($this->session->data['shipping_methods']);
						unset($this->session->data['payment_method']);
						unset($this->session->data['payment_methods']);
						unset($this->session->data['reward']);

						// Totals
						$this->load->model('extension/extension');

						$totals = array();
						$taxes = $this->cart->getTaxes();
						$total = 0;
				
						// Because __call can not keep var references so we put them into an array. 			
						$total_data = array(
							'totals' => &$totals,
							'taxes'  => &$taxes,
							'total'  => &$total
						);

						// Display prices
						if ($this->customer->isLogged() || !$this->config->get('config_customer_price')) {
							$sort_order = array();

							$results = $this->model_extension_extension->getExtensions('total');

							foreach ($results as $key => $value) {
								$sort_order[$key] = $this->config->get($value['code'] . '_sort_order');
							}

							array_multisort($sort_order, SORT_ASC, $results);

							foreach ($results as $result) {
								if ($this->config->get($result['code'] . '_status')) {
									$this->load->model('extension/total/' . $result['code']);

									$this->{'model_extension_total_' . $result['code']}->getTotal($total_data);
								}
							}

							$sort_order = array();

							foreach ($totals as $key => $value) {
								$sort_order[$key] = $value['sort_order'];
							}

							array_multisort($sort_order, SORT_ASC, $totals);
						}

						$json['total_new'] = sprintf($this->language->get('coloring_text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total, $this->session->data['currency']));
					}

					$this->response->addHeader('Content-Type: application/json');
					$this->response->setOutput(json_encode($json));
				}
      ]]></add>
    </operation>
	</file>
	
</modification>