COVID2019 и это вот все. Друзья, вся эта история начинает плохо пахнет. Мойте руки, не ходите в люди. Отложите все плановые покупки и положите в носок заначку. Заприте ваших родителей, бабушек-дедушек на даче. Лучше перебдеть чем недобдеть. Берегите себя!

alniz

Соучастники
  • Публикации

    168
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные пользователем alniz

  1. 16 минут назад, RHCk сказал:

    Теперь, до 01.07.2017, Вам необходимо приобрести онлайн-ККМ или попробовать 'освежить' старую (если она есть), согласно 54-ФЗ (инфо от Яндекса).

    Спасибо за информацию, очень кстати.

  2. версия сайта opencart_cms_2_3_0_2_2

    не добавляется текст на сайт

    вставляю текст из ворда копирую, в админпанеле встает текст, сохраняю, перехожу на общий вид, отображается только часть текста. Вопрос. Почему?

    Что нужно для того, чтобы текст отображался полностью?

  3. 21 час назад, BuslikDrev сказал:

    в шаблоне в

    common/header.tpl после <body> или
    common/home.tpl после <?php echo $header; ?> или до <?php echo $footer; ?> или

    common/footer.tpl до </body>

    А если нужно отображение на определённых страницах, тогда лучше через модуль отображать, присвоить классы и написать стиль,чтобы разместить их в любом месте страницы.

    у меня в шаблоне нет:

    common/header.tpl после <body> или
    common/home.tpl после <?php echo $header; ?> или до <?php echo $footer; ?> или

    common/footer.tpl до </body>

    Есть header.php, home.php, footer.php. А внутри header нет тега body.

    Скрытый текст
    
    <?php   
    class ControllerCommonHeader extends Controller {
    	protected function index() {
    		$this->data['title'] = $this->document->getTitle();
    
    		if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
    			$server = $this->config->get('config_ssl');
    		} else {
    			$server = $this->config->get('config_url');
    		}
    
    		if (isset($this->session->data['error']) && !empty($this->session->data['error'])) {
    			$this->data['error'] = $this->session->data['error'];
    
    			unset($this->session->data['error']);
    		} else {
    			$this->data['error'] = '';
    		}
    
    		$this->data['base'] = $server;
    		$this->data['description'] = $this->document->getDescription();
    		$this->data['keywords'] = $this->document->getKeywords();
    		$this->data['links'] = $this->document->getLinks();
    		$this->data['robots'] = $this->document->getRobots();
    		$this->data['styles'] = $this->document->getStyles();
    		$this->data['scripts'] = $this->document->getScripts();
    		$this->data['lang'] = $this->language->get('code');
    		$this->data['direction'] = $this->language->get('direction');
    		$this->data['google_analytics'] = html_entity_decode($this->config->get('config_google_analytics'), ENT_QUOTES, 'UTF-8');
    		$this->data['name'] = $this->config->get('config_name');
    
    		if ($this->config->get('config_icon') && file_exists(DIR_IMAGE . $this->config->get('config_icon'))) {
    			$this->data['icon'] = $server . 'image/' . $this->config->get('config_icon');
    		} else {
    			$this->data['icon'] = '';
    		}
    
    		if ($this->config->get('config_logo') && file_exists(DIR_IMAGE . $this->config->get('config_logo'))) {
    			$this->data['logo'] = $server . 'image/' . $this->config->get('config_logo');
    		} else {
    			$this->data['logo'] = '';
    		}
    
    		$this->data['og_url'] = (isset($this->request->server['HTTPS']) ? HTTPS_SERVER : HTTP_SERVER) . ltrim ($this->request->server['REQUEST_URI'],'/');
    		$this->data['og_image'] = $this->document->getOgImage();
    
    		$this->language->load('common/header');
    
    		$this->data['text_home'] = $this->language->get('text_home');
    		$this->data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0));
    		$this->data['text_shopping_cart'] = $this->language->get('text_shopping_cart');
    		$this->data['text_search'] = $this->language->get('text_search');
    		$this->data['text_welcome'] = sprintf($this->language->get('text_welcome'), $this->url->link('account/login', '', 'SSL'), $this->url->link('account/register', '', 'SSL'));
    		$this->data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL'));
    		$this->data['text_account'] = $this->language->get('text_account');
    		$this->data['text_checkout'] = $this->language->get('text_checkout');
    		$this->data['text_blog'] = $this->language->get('text_blog');
    		$this->data['text_special'] = $this->language->get('text_special');
    		$this->data['text_latest'] = $this->language->get('text_latest');
    		$this->data['text_brands'] = $this->language->get('text_brands');
    
    		$this->data['home'] = $this->url->link('common/home');
    		$this->data['wishlist'] = $this->url->link('account/wishlist', '', 'SSL');
    		$this->data['logged'] = $this->customer->isLogged();
    		$this->data['account'] = $this->url->link('account/account', '', 'SSL');
    		$this->data['shopping_cart'] = $this->url->link('checkout/cart');
    		$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
    		$this->data['blog'] = $this->url->link('blog/latest', '', 'SSL');
    		$this->data['special'] = $this->url->link('product/special');
    		$this->data['latest'] = $this->url->link('product/latest');
    		$this->data['brands'] = $this->url->link('product/manufacturer');
    
    		// Daniel's robot detector
    		$status = true;
    
    		if (isset($this->request->server['HTTP_USER_AGENT'])) {
    			$robots = explode("\n", trim($this->config->get('config_robots')));
    
    			foreach ($robots as $robot) {
    				if ($robot && strpos($this->request->server['HTTP_USER_AGENT'], trim($robot)) !== false) {
    					$status = false;
    
    					break;
    				}
    			}
    		}
    
    		// A dirty hack to try to set a cookie for the multi-store feature
    		$this->load->model('setting/store');
    
    		$this->data['stores'] = array();
    
    		if ($this->config->get('config_shared') && $status) {
    			$this->data['stores'][] = $server . 'catalog/view/javascript/crossdomain.php?session_id=' . $this->session->getId();
    
    			$stores = $this->model_setting_store->getStores();
    
    			foreach ($stores as $store) {
    				$this->data['stores'][] = $store['url'] . 'catalog/view/javascript/crossdomain.php?session_id=' . $this->session->getId();
    			}
    		}
    
    		// Search		
    		if (isset($this->request->get['search'])) {
    			$this->data['search'] = $this->request->get['search'];
    		} else {
    			$this->data['search'] = '';
    		}
    
    		// Menu
    		if (isset($this->request->get['path'])) {
    			$parts = explode('_', (string)$this->request->get['path']);
    		} else {
    			$parts = array();
    		}
    		
    		if ($this->config->get('config_menu_brands')) {
    			$data = array();
    				$this->load->model('catalog/manufacturer');
    				$this->data['manufacturer'] = array();
    				$manufacturers = $this->model_catalog_manufacturer->getManufacturers($data);
    				if($manufacturers){
    				foreach($manufacturers as $manufacturer){
    					$this->data['manufacturer'][] = array(
    					'name' => $manufacturer['name'],
    					'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id='.$manufacturer['manufacturer_id'])
    					);
    				}
    			}
    		}
    
    		$this->load->model('catalog/category');
    
    		$this->load->model('catalog/product');
    
    		$this->data['categories'] = array();
    
    		$categories = $this->model_catalog_category->getCategories(0);
    
    		foreach ($categories as $category) {
    			if ($category['top']) {
    				// Level 2
    				$children_data = array();
    
    				$children = $this->model_catalog_category->getCategories($category['category_id']);
    
    				foreach ($children as $child) {
    					if ($this->config->get('config_product_count')) {
    						$data = array(
    							'filter_category_id'  => $child['category_id'],
    							'filter_sub_category' => true
    						);
    						
    						$product_total = $this->model_catalog_product->getTotalProducts($data);
    						
    					}
    
    					//Level 3
    		        $subchildren = $this->model_catalog_category->getCategories($child['category_id']);
    				    $subchildren_data = array(); 
    				foreach ($subchildren as $subchild) {
    					if ($this->config->get('config_product_count')) {
    						$data = array(
    							  'filter_category_id'  => $subchild['category_id'],
    							  'filter_sub_category' => true
    						);
     
    						$sub_total = $this->model_catalog_product->getTotalProducts($data);
    					}
    
    					$subchildren_data[] = array(
    								'name'  => $subchild['name'] . ($this->config->get('config_product_count') ? ' (' . $sub_total . ')' : ''),
    								'href'  => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']. '_' . $subchild['category_id'])	
    						);						
    					}								
     
    					$children_data[] = array(
    						'name'  => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
    						'href'  => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']),					
    						'subchildren' => $subchildren_data,
     
    					);						
    				}				
    					//Level	3			
    				
    
    				// Level 1
    				$this->data['categories'][] = array(
    					'name'     => $category['name'],
    					'children' => $children_data,
    					'active'   => in_array($category['category_id'], $parts),
    					'column'   => $category['column'] ? $category['column'] : 1,
    					'href'     => $this->url->link('product/category', 'path=' . $category['category_id'])
    				);
    			}
    		}
    		
    		
    
    		$this->children = array(
    			'module/language',
    			'module/currency',
    			'module/cart'
    		);
    
    		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/header.tpl')) {
    			$this->template = $this->config->get('config_template') . '/template/common/header.tpl';
    		} else {
    			$this->template = 'default/template/common/header.tpl';
    		}
    
    		$this->render();
    	} 	
    }
    ?>

     

     

     

  4. В 26.03.2017 at 16:34, Влад сказал:

    я закончил обновление сайта клиенту, это процесс а не скачиваемый продукт )

    я к тому, что если надо могу все сделать под ключ, если интересно то пиши в личку

    написала

     

    В 26.03.2017 at 16:34, Влад сказал:

     это процесс а не скачиваемый продукт )

    с этим процессом как-то можно разобраться?

  5. 53 минуты назад, RHCk сказал:

    Посмотрите здесь.

    Таких сервисов много, есть даже у Яндекса.

    Куда вставить эти коды в моем случае, чтобы отображалось на каждой странице, и если на какой-то странице, эти коды не понадобятся, как убрать?

  6. 58 минут назад, BuslikDrev сказал:

    Вы хотите сделать на сайте значки, чтобы пользователи могли, нажав - разместить ваш сайт в своей соц. сети? А также хотите вывести блок сообщества от соц. сети показывающий сколько участников в вашей группе?

    да, первое да, а второе - это переход непосредственно на мои странички в соцсетях.

  7. нашла Бесплатный резиновый шаблон RUBBER [быстрый старт OCSHOP.CMS] 1.5.6.4

    здесь есть описание:

    "...

    Обновление

    С любой версии OCSHOP.CMS линейки 1.5.х

    С любой версии ocStore линейки 1.5.х

    C любой версии OpenCart линейки 1.5.х

    Процедура обновления:

    1. Сделайте резервную копию всех файлов и базы данных

    2. Запишите в корневую директорию вашего магазина дистрибутив с Fast start OCSHOP.CMS Rubber 1.5.6.4

    3. Перейдите по адресу http://ваш_домен/install нажмите обновить

    4. Установить права на 777 для следующих папок

    /vqmod/

    /vqmod/logs/

    /vqmod/vqcache/

    /vqmod/xml/

    5. Очистить кэш системный и vQmod

    6. Настроить магазин при необходимости"

     

    Вопрос: поясните, пожалуйста, это - "2. Запишите в корневую директорию вашего магазина дистрибутив с Fast start OCSHOP.CMS Rubber 1.5.6.4"