Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

knopic

Користувачі
  
  • Публікації

    378
  • З нами

  • Відвідування

Повідомлення, опубліковані користувачем knopic

  1. все выдается онлайн и видно где ошибки в H1, Title, Keywords и т.д. Ресурс платный, но делает полезный аудит сайта. Вот система мне и выдала, что дубли у категорий причем указала у какой категории сколько именно дублей и как прописанныссылки дублей пример:

    Выдает это:

    /avtokrjesla/0-1-gruppa-0-18kg/

    /avtokrjesla/0-1-gruppa-0-18kg/?pag

    /avtokrjesla/0-1-gruppa-0-18kg/?pag

     

    И как понять стоит у меня ваш модуль  или нет, так как сайт мне загрузил и настроил другой человек, сейчас к нему доступа нет. Может он у меня стоит. Как понять?

  2. Добрый день!

    Проблема такая, дублей товаров нет, но есть дубли категорий. Как убрать?. У меня OpenCart 1.5.3.1, ЧПУ в настройках включен и настроен на SeoPro. Файл seo_pro.php заменила на файл который скачала здесь https://opencartforum.com/topic/10270-dubli-stranitc-seopro/

  3. Добрый вечер!

    В ниже приведенных файлах очень много скрытых ссылок. Какие можно удалить? Подскажите кто знает.

     

    \admin\view\javascript\ckeditor\CHANGES.html

    \admin\view\javascript\ckeditor\INSTALL.html

    \admin\view\javascript\ckeditor\LICENSE.html

    \admin\view\javascript\jquery\flot\examples\ajax.html

    \admin\view\javascript\jquery\flot\examples\image.html

    \admin\view\javascript\jquery\flot\examples\index.html

    \admin\view\javascript\jquery\flot\examples\percentiles.html

    \admin\view\javascript\jquery\flot\examples\selection.html

    \admin\view\javascript\jquery\flot\examples\turning-series.html

    \admin\view\javascript\jquery\jstree\documentation.html

  4. Специалисты подскажите.

    Мне Seo компания прописала в файле system-library-document.php

    Это нужная вещь и что делает?

     

    Строка 11-18

        ////////////////////
        public function setPagenumber($pagenumber) {
            $this->pagenumber = $pagenumber;
        }
        
        public function getPagenumber() {
            return $this->pagenumber;}
        //////////////////////

  5. да,  посмотрела именно в этом файле прописали

     

    // Cчитаем количество слов в title (LengthTitle). Так же считаем количество слов в названии магазина (LengthShop).
            // Если LengthTitle + LengthShop > 14, то оставим заголовок без изменения. Иначе добавим назание магазина.
            // Если количество страниц в категории или товаре больше 1, то к title добавляется "стр. №"

    //$pagenumber=$this->document->getPagenumber();
            
            //if ($pagenumber >1 ){
            //$TitlePage=' стр. '.$pagenumber;}

  6. Когда в админке делаю редактирование карточек товара браузер выдает ошибку. Это происходит через каждые 4-6 карточек. Приходится постоянно чистить в настройках кэш браузера. Занимает кэш 4,6 МБ на диске. У меня мазила. Почему? И как исправить?

    Bad Request

    Your browser sent a request that this server could not understand.
    Size of a request header field exceeds server limit.

    Cookie

    /n

    Apache/2.2.15 (Red Hat) mod_rpaf/0.6 PHP/5.3.27 Server at cl4-w.ht-systems.ru Port 80

     

  7. Изменения только то что выделено красным. Что убрать из этого? Нужны вообще эти дополнительные внесения?

    <?php  
    class ControllerProductProduct extends Controller {
        private $error = array();
        
        public function index() {
            $this->language->load('product/product');
            $this->language->load('module/instock');
            $this->load->model('module/instock');
            $this->data['text_waiting'] = $this->language->get("text_waiting");
            
        

            $this->data['breadcrumbs'] = array();

            $this->data['breadcrumbs'][] = array(
                'text'      => $this->language->get('text_home'),
                'href'      => $this->url->link('common/home'),            
                'separator' => false
            );
            
            $this->load->model('catalog/category');    
            
            if (isset($this->request->get['path'])) {
                $path = '';
                    
                foreach (explode('_', $this->request->get['path']) as $path_id) {
                    if (!$path) {
                        $path = $path_id;
                    } else {
                        $path .= '_' . $path_id;
                    }
                    
                    $category_info = $this->model_catalog_category->getCategory($path_id);
                    
                    if ($category_info) {
                        $this->data['breadcrumbs'][] = array(
                            'text'      => $category_info['name'],
                            'href'      => $this->url->link('product/category', 'path=' . $path),
                            'separator' => $this->language->get('text_separator')
                        );
                    }
                }
            }
            
            $this->load->model('catalog/manufacturer');    
            
            if (isset($this->request->get['manufacturer_id'])) {
                $this->data['breadcrumbs'][] = array(
                    'text'      => $this->language->get('text_brand'),
                    'href'      => $this->url->link('product/manufacturer'),
                    'separator' => $this->language->get('text_separator')
                );    
                    
                $manufacturer_info = $this->model_catalog_manufacturer->getManufacturer($this->request->get['manufacturer_id']);

                if ($manufacturer_info) {    
                    $this->data['breadcrumbs'][] = array(
                        'text'        => $manufacturer_info['name'],
                        'href'        => $this->url->link('product/manufacturer/product', 'manufacturer_id=' . $this->request->get['manufacturer_id']),                    
                        'separator' => $this->language->get('text_separator')
                    );
                }
            }
            
            if (isset($this->request->get['filter_name']) || isset($this->request->get['filter_tag'])) {
                $url = '';
                
                if (isset($this->request->get['filter_name'])) {
                    $url .= '&filter_name=' . $this->request->get['filter_name'];
                }
                            
                if (isset($this->request->get['filter_tag'])) {
                    $url .= '&filter_tag=' . $this->request->get['filter_tag'];
                }
                            
                if (isset($this->request->get['filter_description'])) {
                    $url .= '&filter_description=' . $this->request->get['filter_description'];
                }
                
                if (isset($this->request->get['filter_category_id'])) {
                    $url .= '&filter_category_id=' . $this->request->get['filter_category_id'];
                }    
                            
                $this->data['breadcrumbs'][] = array(
                    'text'      => $this->language->get('text_search'),
                    'href'      => $this->url->link('product/search', $url),
                    'separator' => $this->language->get('text_separator')
                );    
            }
            
            if (isset($this->request->get['product_id'])) {
                $product_id = $this->request->get['product_id'];
            } else {
                $product_id = 0;
            }
            
            $this->load->model('catalog/product');
            
            $product_info = $this->model_catalog_product->getProduct($product_id);
            
            $this->data['product_info'] = $product_info;
            
            if ($product_info) {
                $url = '';
                
                if (isset($this->request->get['path'])) {
                    $url .= '&path=' . $this->request->get['path'];
                }
                
                if (isset($this->request->get['manufacturer_id'])) {
                    $url .= '&manufacturer_id=' . $this->request->get['manufacturer_id'];
                }            

                if (isset($this->request->get['filter_name'])) {
                    $url .= '&filter_name=' . $this->request->get['filter_name'];
                }
                            
                if (isset($this->request->get['filter_tag'])) {
                    $url .= '&filter_tag=' . $this->request->get['filter_tag'];
                }
                
                if (isset($this->request->get['filter_description'])) {
                    $url .= '&filter_description=' . $this->request->get['filter_description'];
                }    
                            
                if (isset($this->request->get['filter_category_id'])) {
                    $url .= '&filter_category_id=' . $this->request->get['filter_category_id'];
                }
                                                    
                $this->data['breadcrumbs'][] = array(
                    'text'      => $product_info['name'],
                    'href'      => $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id']),
                    'separator' => $this->language->get('text_separator')
                );            
                
                if ($product_info['seo_title']) {
                    $this->document->setTitle($product_info['seo_title']);
                } else {
                    $this->document->setTitle($product_info['name']);
                }

                $this->document->setDescription($product_info['meta_description']);
        
                //####################################################################################################
                //
    Рля исклюСения дублеРРїРѕ keywords добавим РІ РєРѕРЅРµССега название Совара.

                
                $this->document->setKeywords($product_info['meta_keyword'].", ".$product_info['name']);
                
                
                //###################################################################################################

                
                $this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical');
                
                $this->data['seo_h1'] = $product_info['seo_h1'];

                $this->data['heading_title'] = $product_info['name'];
                
                $this->data['text_select'] = $this->language->get('text_select');
                $this->data['text_manufacturer'] = $this->language->get('text_manufacturer');
                $this->data['text_model'] = $this->language->get('text_model');
                $this->data['text_reward'] = $this->language->get('text_reward');
                $this->data['text_points'] = $this->language->get('text_points');    
                $this->data['text_discount'] = $this->language->get('text_discount');
                $this->data['text_stock'] = $this->language->get('text_stock');
                $this->data['text_price'] = $this->language->get('text_price');
                $this->data['text_tax'] = $this->language->get('text_tax');
                $this->data['text_discount'] = $this->language->get('text_discount');
                $this->data['text_option'] = $this->language->get('text_option');
                $this->data['text_qty'] = $this->language->get('text_qty');
                $this->data['text_minimum'] = sprintf($this->language->get('text_minimum'), $product_info['minimum']);
                $this->data['text_or'] = $this->language->get('text_or');
                $this->data['text_write'] = $this->language->get('text_write');
                $this->data['text_note'] = $this->language->get('text_note');
                $this->data['text_share'] = $this->language->get('text_share');
                $this->data['text_wait'] = $this->language->get('text_wait');
                $this->data['text_tags'] = $this->language->get('text_tags');
                
                $this->data['entry_name'] = $this->language->get('entry_name');
                $this->data['entry_review'] = $this->language->get('entry_review');
                $this->data['entry_rating'] = $this->language->get('entry_rating');
                $this->data['entry_good'] = $this->language->get('entry_good');
                $this->data['entry_bad'] = $this->language->get('entry_bad');
                $this->data['entry_captcha'] = $this->language->get('entry_captcha');
                
                $this->data['button_cart'] = $this->language->get('button_cart');
                $this->data['button_wishlist'] = $this->language->get('button_wishlist');
                $this->data['button_compare'] = $this->language->get('button_compare');            
                $this->data['button_upload'] = $this->language->get('button_upload');
                $this->data['button_continue'] = $this->language->get('button_continue');
                
                $this->load->model('catalog/review');

                $this->data['tab_description'] = $this->language->get('tab_description');
                $this->data['tab_attribute'] = $this->language->get('tab_attribute');
                $this->data['tab_review'] = sprintf($this->language->get('tab_review'), $this->model_catalog_review->getTotalReviewsByProductId($this->request->get['product_id']));
                $this->data['tab_related'] = $this->language->get('tab_related');
                
                $this->data['product_id'] = $this->request->get['product_id'];
                $this->data['manufacturer'] = $product_info['manufacturer'];
                $this->data['manufacturers'] = $this->url->link('product/manufacturer/product', 'manufacturer_id=' . $product_info['manufacturer_id']);
                $this->data['model'] = $product_info['model'];
                $this->data['reward'] = $product_info['reward'];
                $this->data['points'] = $product_info['points'];
                $this->data['quantity']  = $this->model_module_instock->getIndicator($product_info['quantity']);
                $this->data['allowed_buy'] = $this->model_module_instock->getAllowedBuy($product_info['quantity']);

                

                if ($product_info['quantity'] <= 0) {
                    $this->data['stock'] = $product_info['stock_status'];
                } elseif ($this->config->get('config_stock_display')) {
                    $this->data['stock'] = $product_info['quantity'];
                } else {
                    $this->data['stock'] = $this->language->get('text_instock');
                }
                
                $this->load->model('tool/image');

                if ($product_info['image']) {
                    $this->data['popup'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height'));
                } else {
                    $this->data['popup'] = '';
                }
                
                if ($product_info['image']) {
                    $this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height'));
                } else {
                    $this->data['thumb'] = '';
                }
                
                $this->data['images'] = array();
                
                $results = $this->model_catalog_product->getProductImages($this->request->get['product_id']);
                
                foreach ($results as $result) {
                    $this->data['images'][] = array(
                        'popup' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')),
                        'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_additional_width'), $this->config->get('config_image_additional_height'))
                    );
                }    
                            
                if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
                    $this->data['price'] = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
                } else {
                    $this->data['price'] = false;
                }
                            
                if ((float)$product_info['special']) {
                    $this->data['special'] = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
                } else {
                    $this->data['special'] = false;
                }
                
                if ($this->config->get('config_tax')) {
                    $this->data['tax'] = $this->currency->format((float)$product_info['special'] ? $product_info['special'] : $product_info['price']);
                } else {
                    $this->data['tax'] = false;
                }
                
                $discounts = $this->model_catalog_product->getProductDiscounts($this->request->get['product_id']);
                
                $this->data['discounts'] = array();
                
                foreach ($discounts as $discount) {
                    $this->data['discounts'][] = array(
                        'quantity' => $discount['quantity'],
                        'price'    => $this->currency->format($this->tax->calculate($discount['price'], $product_info['tax_class_id'], $this->config->get('config_tax')))
                    );
                }
                
                $this->data['options'] = array();
                
                foreach ($this->model_catalog_product->getProductOptions($this->request->get['product_id']) as $option) {
                    if ($option['type'] == 'select' || $option['type'] == 'radio' || $option['type'] == 'checkbox' || $option['type'] == 'image') {
                        $option_value_data = array();
                        
                        foreach ($option['option_value'] as $option_value) {
                            if (!$option_value['subtract'] || ($option_value['quantity'] > 0)) {
                                if ((($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) && (float)$option_value['price']) {
                                    $price = $this->currency->format($this->tax->calculate($option_value['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
                                } else {
                                    $price = false;
                                }
                                
                                $option_value_data[] = array(
                                    'product_option_value_id' => $option_value['product_option_value_id'],
                                    'option_value_id'         => $option_value['option_value_id'],
                                    'name'                    => $option_value['name'],
                                    'image'                   => $this->model_tool_image->resize($option_value['image'], 50, 50),
                                    'price'                   => $price,
                                    'price_prefix'            => $option_value['price_prefix']
                                );
                            }
                        }
                        
                        $this->data['options'][] = array(
                            'product_option_id' => $option['product_option_id'],
                            'option_id'         => $option['option_id'],
                            'name'              => $option['name'],
                            'type'              => $option['type'],
                            'option_value'      => $option_value_data,
                            'required'          => $option['required']
                        );                    
                    } elseif ($option['type'] == 'text' || $option['type'] == 'textarea' || $option['type'] == 'file' || $option['type'] == 'date' || $option['type'] == 'datetime' || $option['type'] == 'time') {
                        $this->data['options'][] = array(
                            'product_option_id' => $option['product_option_id'],
                            'option_id'         => $option['option_id'],
                            'name'              => $option['name'],
                            'type'              => $option['type'],
                            'option_value'      => $option['option_value'],
                            'required'          => $option['required']
                        );                        
                    }
                }
                                
                if ($product_info['minimum']) {
                    $this->data['minimum'] = $product_info['minimum'];
                } else {
                    $this->data['minimum'] = 1;
                }
                
                $this->data['review_status'] = $this->config->get('config_review_status');
                $this->data['reviews'] = sprintf($this->language->get('text_reviews'), (int)$product_info['reviews']);
                $this->data['rating'] = (int)$product_info['rating'];
                $this->data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
                $this->data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($this->request->get['product_id']);
                
                $this->data['products'] = array();
                
                $results = $this->model_catalog_product->getProductRelated($this->request->get['product_id']);
                
                foreach ($results as $result) {
                    if ($result['image']) {
                        $image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_related_width'), $this->config->get('config_image_related_height'));
                    } else {
                        $image = false;
                    }
                    
                    if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
                        $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
                    } else {
                        $price = false;
                    }
                            
                    if ((float)$result['special']) {
                        $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')));
                    } else {
                        $special = false;
                    }
                    
                    if ($this->config->get('config_review_status')) {
                        $rating = (int)$result['rating'];
                    } else {
                        $rating = false;
                    }
                                
                    $this->data['products'][] = array(
                        'product_id' => $result['product_id'],
                        'thumb'        => $image,
                        'name'         => $result['name'],
                        'price'        => $price,
                        'special'      => $special,
                        'rating'     => $rating,
                        'reviews'    => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
                        'href'         => $this->url->link('product/product', 'product_id=' . $result['product_id']),
                    );
                }    
                
                $this->data['tags'] = array();
                        
                $results = $this->model_catalog_product->getProductTags($this->request->get['product_id']);
                
                foreach ($results as $result) {
                    $this->data['tags'][] = array(
                        'tag'  => $result['tag'],
                        'href' => $this->url->link('product/search', 'filter_tag=' . $result['tag'])
                    );
                }
                
                $this->model_catalog_product->updateViewed($this->request->get['product_id']);
                
                if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/product.tpl')) {
                    $this->template = $this->config->get('config_template') . '/template/product/product.tpl';
                } else {
                    $this->template = 'default/template/product/product.tpl';
                }
                
                $this->children = array(
                    'common/column_left',
                    'common/column_right',
                    'common/content_top',
                    'common/content_bottom',
                    'common/footer',
                    'common/header'
                );
                            
                $this->response->setOutput($this->render());
            } else {
                $url = '';
                
                if (isset($this->request->get['path'])) {
                    $url .= '&path=' . $this->request->get['path'];
                }
                
                if (isset($this->request->get['manufacturer_id'])) {
                    $url .= '&manufacturer_id=' . $this->request->get['manufacturer_id'];
                }            

                if (isset($this->request->get['filter_name'])) {
                    $url .= '&filter_name=' . $this->request->get['filter_name'];
                }    
                        
                if (isset($this->request->get['filter_tag'])) {
                    $url .= '&filter_tag=' . $this->request->get['filter_tag'];
                }
                                
                if (isset($this->request->get['filter_description'])) {
                    $url .= '&filter_description=' . $this->request->get['filter_description'];
                }
                        
                if (isset($this->request->get['filter_category_id'])) {
                    $url .= '&filter_category_id=' . $this->request->get['filter_category_id'];
                }
                                    
                  $this->data['breadcrumbs'][] = array(
                    'text'      => $this->language->get('text_error'),
                    'href'      => $this->url->link('product/product', $url . '&product_id=' . $product_id),
                    'separator' => $this->language->get('text_separator')
                  );            
            
                  $this->document->setTitle($this->language->get('text_error'));

                  $this->data['heading_title'] = $this->language->get('text_error');

                  $this->data['text_error'] = $this->language->get('text_error');

                  $this->data['button_continue'] = $this->language->get('button_continue');
                //Рзменение для Сормирования РѕСРёР±РєРё 404 РЅР° Совар РєРѕСРѕСЂСРРѕСклюСен
                $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
                ///////////////////////////////////////////////////////////////////

                  $this->data['continue'] = $this->url->link('common/home');

                if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) {
                    $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl';
                } else {
                    $this->template = 'default/template/error/not_found.tpl';
                }
                
                $this->children = array(
                    'common/column_left',
                    'common/column_right',
                    'common/content_top',
                    'common/content_bottom',
                    'common/footer',
                    'common/header'
                );
                            
                $this->response->setOutput($this->render());
            }
          }
        
        public function review() {
            $this->language->load('product/product');
            
            $this->load->model('catalog/review');

            $this->data['text_on'] = $this->language->get('text_on');
            $this->data['text_no_reviews'] = $this->language->get('text_no_reviews');

            if (isset($this->request->get['page'])) {
                $page = $this->request->get['page'];
            } else {
                $page = 1;
            }  
            ///////////////////////////////////////
            
            
            $this->document->setPagenumber($page);
            //////////////////////////////////

            

            $this->data['reviews'] = array();
            
            $review_total = $this->model_catalog_review->getTotalReviewsByProductId($this->request->get['product_id']);
                
            $results = $this->model_catalog_review->getReviewsByProductId($this->request->get['product_id'], ($page - 1) * 5, 5);
                  
            foreach ($results as $result) {
                $this->data['reviews'][] = array(
                    'author'     => $result['author'],
                    'text'       => $result['text'],
                    'rating'     => (int)$result['rating'],
                    'reviews'    => sprintf($this->language->get('text_reviews'), (int)$review_total),
                    'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added']))
                );
              }            
                
            $pagination = new Pagination();
            $pagination->total = $review_total;
            $pagination->page = $page;
            $pagination->limit = 5;
            $pagination->text = $this->language->get('text_pagination');
            $pagination->url = $this->url->link('product/product/review', 'product_id=' . $this->request->get['product_id'] . '&page={page}');
                
            $this->data['pagination'] = $pagination->render();
            
            if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/review.tpl')) {
                $this->template = $this->config->get('config_template') . '/template/product/review.tpl';
            } else {
                $this->template = 'default/template/product/review.tpl';
            }
            
            $this->response->setOutput($this->render());
        }
        
        public function write() {
            $this->language->load('product/product');
            
            $this->load->model('catalog/review');
            
            $json = array();
            
            if ($this->request->server['REQUEST_METHOD'] == 'POST') {
                if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 25)) {
                    $json['error'] = $this->language->get('error_name');
                }
                
                if ((utf8_strlen($this->request->post['text']) < 25) || (utf8_strlen($this->request->post['text']) > 1000)) {
                    $json['error'] = $this->language->get('error_text');
                }
        
                if (empty($this->request->post['rating'])) {
                    $json['error'] = $this->language->get('error_rating');
                }
        
                if (empty($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
                    $json['error'] = $this->language->get('error_captcha');
                }
                    
                if (!isset($json['error'])) {
                    $this->model_catalog_review->addReview($this->request->get['product_id'], $this->request->post);
                    
                    $json['success'] = $this->language->get('text_success');
                }
            }
            
            $this->response->setOutput(json_encode($json));
        }
        
        public function captcha() {
            $this->load->library('captcha');
            
            $captcha = new Captcha();
            
            $this->session->data['captcha'] = $captcha->getCode();
            
            $captcha->showImage();
        }
        
        public function upload() {
            $this->language->load('product/product');
            
            $json = array();
            
            if (!empty($this->request->files['file']['name'])) {
                $filename = basename(preg_replace('/[^a-zA-Z0-9\.\-\s+]/', '', html_entity_decode($this->request->files['file']['name'], ENT_QUOTES, 'UTF-8')));
                
                if ((strlen($filename) < 3) || (strlen($filename) > 64)) {
                    $json['error'] = $this->language->get('error_filename');
                  }          
                
                $allowed = array();
                
                $filetypes = explode(',', $this->config->get('config_upload_allowed'));
                
                foreach ($filetypes as $filetype) {
                    $allowed[] = trim($filetype);
                }
                
                if (!in_array(substr(strrchr($filename, '.'), 1), $allowed)) {
                    $json['error'] = $this->language->get('error_filetype');
                   }    
                            
                if ($this->request->files['file']['error'] != UPLOAD_ERR_OK) {
                    $json['error'] = $this->language->get('error_upload_' . $this->request->files['file']['error']);
                }
            } else {
                $json['error'] = $this->language->get('error_upload');
            }
            
            if (!$json) {
                if (is_uploaded_file($this->request->files['file']['tmp_name']) && file_exists($this->request->files['file']['tmp_name'])) {
                    $file = basename($filename) . '.' . md5(mt_rand());
                    
                    // Hide the uploaded file name so people can not link to it directly.
                    $json['file'] = $this->encryption->encrypt($file);
                    
                    move_uploaded_file($this->request->files['file']['tmp_name'], DIR_DOWNLOAD . $file);
                }
                            
                $json['success'] = $this->language->get('text_upload');
            }    
            
            $this->response->setOutput(json_encode($json));        
        }
    }
    ?>

  8. Добрый день!

     У меня на сайте есть 1 битая ссылка, но я не знаю в каком файле исправить. Находится она здесь.

     

    1 kiddi-m.ru/
    404 2 kiddi-m.ru/index.php?route=common/home
    404

     

     

     

     

  9. Добрый день!

    В поисковиках при наборе товара выходит мой магазин в таком формате:.

    Интернет-магазин Планета малыша | Прогулочная коляска Cam Met
    Как убрать название "Интернет-магазин Планета малыша"?
     
    Надо чтобы выходило так:
    Прогулочная коляска Cam Met

     

    А то в глаза кидается магазин, а не товар. Розничному покупателю название магазина все равно какое,  таких много. Главное товар и он привлекает внимание.

     

    Эту фишку внесла сео компания которая продвигала магазин, но я считаю, что это плохо. Сейчас к ним доступа нет.

  10. В яндексе указано, что главное зеркало www. kiddi-m.ru

    Если я ставлю в яше поверку sitemap, то:

    ссылка без www выдает ошибку ( Указанный URL выполняет перенаправление, поэтому не рекомендуется добавлять его в качестве файла Sitemap. Используйте URL цели перенаправления)

    а если с www яша выдает ошибок нет

     

    А проверка robots выдает ошибку и с www и без www. Ошибку прописывает одинаковую

      47-91

    User-agent: Yandex
     
    Disallow: /admin

    ...

    Disallow: /*?keyword

        93-94

    Host: kiddi-m.ru
     

         

      47-91
    User-agent: Yandex

     

     

    Disallow: /admin
    ...
    Disallow: /*?keyword
        93-94
    Host: www.kiddi-m.ru

     

     

         
  11. Спасибо) с www уже сама разобралась

    при проверки sitemap яша пишет, что ошибок нет

     

    А вот при проверки robots яша выдает это:

      47-91

     

     

    User-agent: Yandex

     

     

    Disallow: /admin

     

    ...

    Disallow: /*?keyword
        93-94
    Host: www.kiddi-m.ru

     

     

         

    Как испарвить?

     

    User-agent: *
        Disallow: /admin
        Disallow: /cache
        Disallow: /niks
        Disallow: /catalog
        Disallow: /download
        Disallow: /export
        Disallow: /system
        Disallow: /index.php?route=account
        Disallow: /index.php?route=account/account
        Disallow: /index.php?route=checkout/cart
        Disallow: /index.php?route=checkout/shipping
        Disallow: /index.php?route=common/home
        Disallow: /index.php?route=product/product/captcha
        Disallow: /index.php?route=product/product*&manufacturer_id=
        Disallow: /index.php?route=product/search
        Disallow: /index.php?route=information/contact/captcha
        Disallow: /index.php?route=information/information&information_id=
        Disallow: /index.php?route=product/manufacturer
        Disallow: /index.php?route=product/compare
        Disallow: /index.php?route=account/login
        Disallow: /*route=account/
        Disallow: /*route=account/login
        Disallow: /*route=checkout/
        Disallow: /*route=checkout/cart
        Disallow: /*route=affiliate/
        Disallow: /*route=product/search
        Disallow: /*?sort=
        Disallow: /*?sort
        Disallow: /*&sort=
        Disallow: /*?order=
        Disallow: /*?order
        Disallow: /*&order=
        Disallow: /*?limit=
        Disallow: /*&limit=
        Disallow: /*?filter_name=
        Disallow: /*&filter_name=
        Disallow: /*?filter_sub_category=
        Disallow: /*&filter_sub_category=
        Disallow: /*?filter_description=
        Disallow: /*&filter_description=
        Disallow: /*?tracking=
        Disallow: /*&tracking=
        Disallow: /*?manufacturer
        Disallow: /*?keyword
        
    User-agent: Yandex
        Disallow: /admin
        Disallow: /cache
        Disallow: /niks
        Disallow: /catalog
        Disallow: /download
        Disallow: /export
        Disallow: /system
        Disallow: /index.php?route=account
        Disallow: /index.php?route=account/account
        Disallow: /index.php?route=checkout/cart
        Disallow: /index.php?route=checkout/shipping
        Disallow: /index.php?route=common/home
        Disallow: /index.php?route=product/product/captcha
        Disallow: /index.php?route=product/product*&manufacturer_id=
        Disallow: /index.php?route=product/search
        Disallow: /index.php?route=information/contact/captcha
        Disallow: /index.php?route=information/information&information_id=
        Disallow: /index.php?route=product/manufacturer
        Disallow: /index.php?route=product/compare
        Disallow: /index.php?route=account/login
        Disallow: /*route=account/
        Disallow: /*route=account/login
        Disallow: /*route=checkout/
        Disallow: /*route=checkout/cart
        Disallow: /*route=affiliate/
        Disallow: /*route=product/search
        Disallow: /*?sort=
        Disallow: /*?sort
        Disallow: /*&sort=
        Disallow: /*?order=
        Disallow: /*?order
        Disallow: /*&order=
        Disallow: /*?limit=
        Disallow: /*&limit=
        Disallow: /*?filter_name=
        Disallow: /*&filter_name=
        Disallow: /*?filter_sub_category=
        Disallow: /*&filter_sub_category=
        Disallow: /*?filter_description=
        Disallow: /*&filter_description=
        Disallow: /*?tracking=
        Disallow: /*&tracking=
        Disallow: /*?manufacturer
        Disallow: /*?keyword
        
        Host: www.kiddi-m.ru
        Sitemap: http://www.kiddi-m.ru/index.php?route=feed/google_sitemap

  12. Пожалуйста проверьте мой файл robots. Уже мозг взрывается. Яша при проверки robots выдал

    Host: www.kiddi-m.ru
     

     

    Что где не так

    User-agent: *
        Disallow: /admin
        Disallow: /cache
        Disallow: /niks
        Disallow: /catalog
        Disallow: /download
        Disallow: /export
        Disallow: /system
        Disallow: /index.php?route=account
        Disallow: /index.php?route=account/account
        Disallow: /index.php?route=checkout/cart
        Disallow: /index.php?route=checkout/shipping
        Disallow: /index.php?route=common/home
        Disallow: /index.php?route=product/product/captcha
        Disallow: /index.php?route=product/product*&manufacturer_id=
        Disallow: /index.php?route=product/search
        Disallow: /index.php?route=information/contact/captcha
        Disallow: /index.php?route=information/information&information_id=
        Disallow: /index.php?route=product/manufacturer
        Disallow: /index.php?route=product/compare
        Disallow: /index.php?route=account/login
        Disallow: /*route=account/
        Disallow: /*route=account/login
        Disallow: /*route=checkout/
        Disallow: /*route=checkout/cart
        Disallow: /*route=affiliate/
        Disallow: /*route=product/search
        Disallow: /*?sort=
        Disallow: /*?sort
        Disallow: /*&sort=
        Disallow: /*?order=
        Disallow: /*?order
        Disallow: /*&order=
        Disallow: /*?limit=
        Disallow: /*&limit=
        Disallow: /*?filter_name=
        Disallow: /*&filter_name=
        Disallow: /*?filter_sub_category=
        Disallow: /*&filter_sub_category=
        Disallow: /*?filter_description=
        Disallow: /*&filter_description=
        Disallow: /*?tracking=
        Disallow: /*&tracking=
        Disallow: /*?manufacturer
        Disallow: /*?keyword
        
    User-agent: Yandex
        Disallow: /admin
        Disallow: /cache
        Disallow: /niks
        Disallow: /catalog
        Disallow: /download
        Disallow: /export
        Disallow: /system
        Disallow: /index.php?route=account
        Disallow: /index.php?route=account/account
        Disallow: /index.php?route=checkout/cart
        Disallow: /index.php?route=checkout/shipping
        Disallow: /index.php?route=common/home
        Disallow: /index.php?route=product/product/captcha
        Disallow: /index.php?route=product/product*&manufacturer_id=
        Disallow: /index.php?route=product/search
        Disallow: /index.php?route=information/contact/captcha
        Disallow: /index.php?route=information/information&information_id=
        Disallow: /index.php?route=product/manufacturer
        Disallow: /index.php?route=product/compare
        Disallow: /index.php?route=account/login
        Disallow: /*route=account/
        Disallow: /*route=account/login
        Disallow: /*route=checkout/
        Disallow: /*route=checkout/cart
        Disallow: /*route=affiliate/
        Disallow: /*route=product/search
        Disallow: /*?sort=
        Disallow: /*?sort
        Disallow: /*&sort=
        Disallow: /*?order=
        Disallow: /*?order
        Disallow: /*&order=
        Disallow: /*?limit=
        Disallow: /*&limit=
        Disallow: /*?filter_name=
        Disallow: /*&filter_name=
        Disallow: /*?filter_sub_category=
        Disallow: /*&filter_sub_category=
        Disallow: /*?filter_description=
        Disallow: /*&filter_description=
        Disallow: /*?tracking=
        Disallow: /*&tracking=
        Disallow: /*?manufacturer
        Disallow: /*?keyword
        
        Host: www.kiddi-m.ru
        Sitemap: http://www.kiddi-m.ru/index.php?route=feed/google_sitemap
     

  13. Т.Е Я ПРАВИЛЬНО ПОНЯЛА, ЧТО ФАЙЛ SITEMAP СОЗДАЕТСЯ САМ В OPENCART. Т.Е ФАЙЛ САМИ НЕ СОЗДАЕМ И НИКУДА НЕ ЗАГРУЖАЕМ

     

    В robots прописана ссылка:

     

    Sitemap: http://www.kiddi-m.ru/admin/index.php?route=extension/feed

     

    при проверки файла robots яша выдает

     

      35-66

    User-agent: Yandex

     

    Crawl-delay: 4

    ...

    Disallow: /*route=product/pricelist

        68-70

    Clean-param: tracking

     

    Host: www.kiddi-m.ru

     

     Это ошибки? Или так и должно быть? Если ошибки, то как исправить?

     

     

    А при проверки sitemap яша выдает:

    Указанный URL запрещен к индексированию в файле robots.txt.

    Url http://www.kiddi-m.ru/admin/index.php?route=extension/feed is disallowed in robots.txt.

     


    Sitemap: http://www.kiddi-m.ru/admin/index.php?route=extension/feed

     

    Sitemap: http://www.kiddi-m.ru/admin/index.php?route=extension/feed

  14. Добрый вечер!

    Создала файл Sitemap. mxl. Загрузила в корень сайта.

    Делаю проверку в яндекс, выходит ошибка.

    Указанный URL выполняет перенаправление, поэтому не рекомендуется добавлять его в качестве файла Sitemap. Используйте URL цели перенаправления.

    Что не так. Файлы sitemap и robots прилагаю

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.