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

Timyr02

Новачок
  
  • Публікації

    29
  • З нами

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

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

  1. Всем доброго времени суток. 

    Интернет магазин http://stroyufasnab.ru  стоит на ocStore Версия 1.5.5.1.2

     

    Выдает ошибку 

    Цитата

     Notice: Undefined offset: 1 in /home/s/stroyshp/stroyufasnab.ru/public_html/catalog/controller/module/univertheme.php on line 55Notice: Undefined offset: 1 in /home/s/stroyshp/stroyufasnab.ru/public_html/catalog/controller/module/univertheme.php on line 64Notice: Undefined offset: 1 in /home/s/stroyshp/stroyufasnab.ru/public_html/catalog/controller/module/univertheme.phpon line 74Notice: Undefined offset: 1 in /home/s/stroyshp/stroyufasnab.ru/public_html/catalog/controller/module/univertheme.php on line 83Notice: Undefined offset: 1 in /home/s/stroyshp/stroyufasnab.ru/public_html/catalog/controller/module/univertheme.php on line 136 

     

    Данные по данному файлу:

     

    Спойлер
    
    <?php  
    class ControllerModuleuniverTheme extends Controller {
        protected function index() {
            
            $this->language->load('module/univertheme');
            $this->data['univermod'] = $this->config->get('univermod');
            $this->data['mattimg_icon']     = $this->config->get('mattimg_icon');
            $this->data['matt_array']     = $this->config->get('matt_array');
            $this->data['univerlink']     = $this->config->get('univerlink');
            $this->data['univerlinkheader']     = $this->config->get('univerlinkheader');
            $this->data['mattimg']     = $this->config->get('mattimg');
            $this->data['mattnetwork']     = $this->config->get('mattnetwork');
            $this->data['mattheader']     = $this->config->get('mattheader');
    
            /* LANGUAGE */
            $this->load->model('localisation/language');
            $this->data['languages'] = $this->model_localisation_language->getLanguages();
            $this->data['language_id'] = array();
            foreach ($this->data['languages'] as $result) {
                  $this->data['language_id'][] = array(
                    'language_id' => $result['language_id']
                  );
            }
            
            $this->load->model('tool/image');
    
    
            $this->data['cusom_p']    = array();
            $this->data['cusom_p_tab']    = array();
            $this->data['cusom_f']    = array();
            $this->data['Top_m_link']    = array();
            $this->data['Header_m_link']    = array();
            $this->data['htmlmenu_t']    = array();
            $this->data['informations'] = array();
            $this->data['mattimg_f']        = array();
            $this->data['cusom_payment']    = array();
            $this->data['cusom_network']    = array();
            $this->data['cusom_header']    = array();
    
            
            /* Information*/
            foreach ($this->model_catalog_information->getInformations() as $result) {
                $this->data['informations'][] = array(
                    'title' => $result['title'],
                    'href'  => $this->url->link('information/information', 'information_id=' . $result['information_id'])
                );
            }
            
            if($this->data['matt_array']){
                
                /* Custom product information*/
                $i = 0;
            
                foreach ($this->data['matt_array'] as $result) {
                    $this->data['cusom_p'][$this->data['language_id'][$i]['language_id']] = array(
                        'product_text'    =>    $result['product_text']
                );
                    $i++;
                }
    
                
                $i = 0;
                foreach ($this->data['matt_array'] as $result) {
                    $this->data['cusom_p_tab'][$this->data['language_id'][$i]['language_id']] = array(
                        'product_title_tab'    =>    $result['product_title_tab'],
                        'product_text_tab'    =>    $result['product_text_tab']
                    );
                    $i++;
                }
              
                /* Custom footer contact*/
                $i = 0;
                foreach ($this->data['matt_array'] as $result) {
                    $this->data['cusom_f'][$this->data['language_id'][$i]['language_id']] = array(
                        'comptext_text'    =>    $result['comptext_text']
                    );
                    $i++;
                }
                
                /* Custom payment text*/
                $i = 0;
                foreach ($this->data['matt_array'] as $result) {
                    $this->data['cusom_payment'][$this->data['language_id'][$i]['language_id']] = array(
                    'compfootertext_title'        =>    $result['compfootertext_title'],
                    'footer_payment_text'    =>    $result['footer_payment_text']
                    );
                    $i++;
                }    
                
            } else {
                $this->data['cusom_p'][$this->config->get('config_language_id')]['product_text'] = '';
                $this->data['cusom_p_tab'][$this->config->get('config_language_id')]['product_title_tab'] = '';
                $this->data['cusom_p_tab'][$this->config->get('config_language_id')]['product_text_tab'] = '';
                $this->data['cusom_f'][$this->config->get('config_language_id')]['comptext_text'] = '';
                $this->data['htmlmenu_t'][$this->config->get('config_language_id')]['topmenulink_lang'] ='';
                $this->data['htmlmenu_t'][$this->config->get('config_language_id')]['topmenulink_custom'] = '';
                $this->data['cusom_payment'][$this->config->get('config_language_id')]['compfootertext_title'] = '';
                $this->data['cusom_payment'][$this->config->get('config_language_id')]['footer_payment_text'] = '';
    
            }
            
            if($this->data['univerlink']){
                
                /* Custom menu links*/
                $i = 0;
                if ((isset($this->data['univerlink'])) && (!function_exists('cmp3')) ){
                   function cmp3($a,$b){
                      return ($a['sort']<$b['sort'])?-1:1;
                   }
                         $this->data['Top_m_link'] = $this->data['univerlink']['Top_m_links'];
                   uasort($this->data['Top_m_link'],'cmp3');
                }
            }
            
            if($this->data['univerlinkheader']){
                
                /* Custom menu header links*/
                $i = 0;
                if ((isset($this->data['univerlinkheader'])) && (!function_exists('cmp2')) ){
                   function cmp2($a,$b){
                      return ($a['sort']<$b['sort'])?-1:1;
                   }
                         $this->data['Header_m_link'] = $this->data['univerlinkheader']['Header_m_links'];
                   uasort($this->data['Header_m_link'],'cmp2');
                }
            }
            
            
            if($this->data['univermod']){
    
                
              /* Custom html menu*/
                $i = 0;
                foreach ($this->data['univermod'] as $result) {
                    
                    $this->data['htmlmenu_t'][$this->data['language_id'][$i]['language_id']] = array(
                        'topmenulink_lang'        =>    $result['topmenulink_lang'],
                        'topmenulink_custom'    =>    $result['topmenulink_custom']
                    );
                    
                    $i++;
                }
                
            }
            
            
                if($this->data['mattimg']){
                        /* Payments icons*/
    
                if(isset($this->data['mattimg'])){
                    foreach ($this->data['mattimg'] as $result) {
                        if (file_exists(DIR_IMAGE . $result['image'])) {
                    $this->data['mattimg_f'][] = array(
                        'title' => $result['title'],
                        'image' => $this->model_tool_image->resize($result['image'],50, 30)
                    );
                }
                    }
                   }
                }
                
                if($this->data['mattnetwork']){
                        /* Network icons*/
                
                if(isset($this->data['mattnetwork'])){
                    foreach ($this->data['mattnetwork'] as $result) {
                        if (file_exists(DIR_IMAGE . $result['image'])) {
                    $this->data['cusom_network'][] = array(
                        'title' => $result['title'],
                        'href' => $result['href'],
                        'image' => $this->model_tool_image->resize($result['image'],24, 24),
                    );
                }
                    }
                   }
                }
                
            if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
                     $way = $this->config->get('config_ssl') . 'image/';
                    } else {
                    $way = $this->config->get('config_url') . 'image/';
                   }        
    
            if($this->data['mattheader']){
                        /* Header icons*/
               
                if(isset($this->data['mattheader'])){
                    foreach ($this->data['mattheader'] as $result) {
                        
                    if (($result['image'])) {
                        $image = $way.$result['image'];
                    } else{
                    $image = false;    
                    }
                        
                        
                    $this->data['cusom_header'][] = array(
                        'title' => $result['title'][$this->config->get('config_language_id')],
                        'href' => $result['href'],
                        'image' => $image,
                    );
                
                
                }
                   }
                   
                }
            
            
            /* Featured products*/
            $this->load->model('catalog/product'); 
    
            $this->data['products'] = array();
    
            $products = explode(',', $this->config->get('featured_product2'));    
            
            $this->data['parall_limit'] = $this->config->get('parall_limit');
            
            if (($this->data['parall_limit'] !=='') && (isset($this->data['parall_limit']))) {
                 $setting['limit'] = $this->data['parall_limit']; 
                 } else {
                 $setting['limit'] = 5; }    
    
            
            $products = array_slice($products, 0, (int)$setting['limit']);
            
            $this->data['parall_p_width'] = $this->config->get('parall_p_width');
            $this->data['parall_p_height'] = $this->config->get('parall_p_height');
    
            
            if (($this->data['parall_p_width'] !=='') && (isset($this->data['parall_p_width']))) {
                 $width = $this->data['parall_p_width'];
                 } else {
                 $width = 248;
                 }
                 
            if (($this->data['parall_p_height'] !=='') && (isset($this->data['parall_p_height']))) {
                 $height = $this->data['parall_p_height']; 
                 } else {
                 $height = 248;
    }     
    
            
            foreach ($products as $product_id) {
                $product_info = $this->model_catalog_product->getProduct($product_id);
                
                if ($product_info) {
                    if ($product_info['image']) {
                        $image = $this->model_tool_image->resize($product_info['image'],  $width, $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($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
                    } else {
                        $price = false;
                    }
                            
                    if ((float)$product_info['special']) {
                        $special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
                    } else {
                        $special = false;
                    }
                    
                    if ($this->config->get('config_review_status')) {
                        $rating = $product_info['rating'];
                    } else {
                        $rating = false;
                    }
                        
                    $this->data['products'][] = array(
                        'product_id' => $product_info['product_id'],
                        'quickview'        => $this->url->link('product/quickview', 'product_id=' . $product_info['product_id']),
                        'thumb'        => $image,
                        'name'         => $product_info['name'],
                        'saving'    => round((($product_info['price'] - $product_info['special'])/($product_info['price'] + 0.01))*100, 0),
                        'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, 120) . '..',
                        'price'        => $price,
                        'special'      => $special,
                        'rating'     => $rating,
                        'reviews'    => sprintf($this->language->get('text_reviews'), (int)$product_info['reviews']),
                        'href'         => $this->url->link('product/product', 'product_id=' . $product_info['product_id'])
                    );
                }
            }
            
    
            $this->registry->set('cusom_p',htmlspecialchars_decode($this->data['cusom_p'][$this->config->get('config_language_id')]['product_text'], ENT_QUOTES ));
            
            $this->registry->set('cusom_p_tab1',htmlspecialchars_decode($this->data['cusom_p_tab'][$this->config->get('config_language_id')]['product_title_tab'], ENT_QUOTES ));
            $this->registry->set('cusom_p_tab2',htmlspecialchars_decode($this->data['cusom_p_tab'][$this->config->get('config_language_id')]['product_text_tab'], ENT_QUOTES ));
            
            $this->registry->set('cusom_f',htmlspecialchars_decode($this->data['cusom_f'][$this->config->get('config_language_id')]['comptext_text'], ENT_QUOTES ));
            
            $this->registry->set('Top_m_link',$this->data['Top_m_link']);
            
            $this->registry->set('Header_m_link',$this->data['Header_m_link']);
            
            $this->registry->set('htmlmenu_t1',$this->data['htmlmenu_t'][$this->config->get('config_language_id')]['topmenulink_lang']);
            $this->registry->set('htmlmenu_t2',htmlspecialchars_decode($this->data['htmlmenu_t'][$this->config->get('config_language_id')]['topmenulink_custom'], ENT_QUOTES ));
            
            $this->registry->set('Information_menu',$this->data['informations']);
            
            $this->registry->set('mattimg_f',$this->data['mattimg_f']);
            
            $this->registry->set('cusom_payment1',$this->data['cusom_payment'][$this->config->get('config_language_id')]['compfootertext_title']);
            $this->registry->set('cusom_payment2',htmlspecialchars_decode($this->data['cusom_payment'][$this->config->get('config_language_id')]['footer_payment_text'], ENT_QUOTES ));
            
            $this->registry->set('cusom_network',$this->data['cusom_network']);
            
            $this->registry->set('cusom_header',$this->data['cusom_header']);
            
            $this->registry->set('featured_product2',$this->data['products']);
                
    
    
        }
    }
    
    
    ?>

     

     

    Подскажите что нужно исправить 

  2. Доброй ночи.

    В очередной раз в тупике и в очередной раз обращаюсь к Вам Всемогущие Форумчани.

     

    1 Вопрос:

     

    На скриншоте красным выделил надпись "магазин" и надпись "категории". Где их можно изменить. 

    image.png.fa1197c4ca69fdf1d58ce7f795211c09.png

     

    2. Вопрос:

    На скриншоте страница категорий. Как и где изменить шрифт, размер текста и изменить размер изображения

    image.png.b5716450749ca345838de951a591696d.png 

  3. В 19.01.2018 в 01:45, Timyr02 сказал:

    Доброй ночи.

    Спасибо за шикарный бесплатный модуль.

    Интернет магазин стоит на  версии 1.5.5.1.1 ocStore

    Тема univer

    Скачал autocalc_price_option_v2.0.22.xml  Вставил в public_html/vqmod/xml   

    Не чего не происходит и не меняется. 

    Подскажите что может быть? 

    похоже полный 0 в этой теме.

    кому не сложно, можете по подробно объяснить что и как делать?

  4. Доброй ночи.

    Спасибо за шикарный бесплатный модуль.

    Интернет магазин стоит на  версии 1.5.5.1.1 ocStore

    Тема univer

    Скачал autocalc_price_option_v2.0.22.xml  Вставил в public_html/vqmod/xml   

    Не чего не происходит и не меняется. 

    Подскажите что может быть? 

  5. Добрый вечер.

    Интернет магазин. Стоит на  версия 1.5.5.1.1

    Как сделать цену динамической?  ( под динамической я имею ввиду применение к основной цене - цену опции. К примеру стандартная цена 2080 в опции выбираю размер и цена + 1317, цена должна измениться на 3397) 

    На скриншоте 1 мой магазин где данная функция не реализована

    image.png.b5c7026babbcf2a9f770caa7b067b0b6.png

     

     

    На скриншоте 2 другой сайт.  Цена без применения опции

    image.png.37616fab225155be24b7bee5248e0bdb.png

     

    На скриншоте 3 тот же сайт с применением опции. Цена изменяется. 

    image.png.70fe157bb5a1a42a2413ba8ff48fb57c.png

  6. Решено.

    -> Настройки ->"Название магазина" изменить->Опции->ЭЛЕМЕНТОВ НА СТРАНИЦУ-> Панель управления Количество отображаемых на странице элементов (товары, категории, заказы, покупатели и т.п.) и меняем на нужное

  7.  

    4 часа назад, konorws сказал:

    ищите в файле /catalog/view/theme/ИМЯ вашей темы/template/product/category.tpl

     

    Спасибо большое попробую) 

    Просто новичок в этом деле все понять сразу не могу.

     /catalog/view/theme   на сайте хоста нашел это все. 

     

    Там уже идет сам код данной темы если я правильно понимаю.

    Что нужно в коде редактировать ? 

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

Important Information

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