Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Подгдержка] Группы товаров по цвету 1.5 - 2.0


Recommended Posts

Люди, у кого были ошибки что автокомплект опрегделялся(или не опрегделялся), но не добавлялся в базу, какое секретное решение автор вам в личку отправлял? У многих были данные проблемы судя по ветке.

 

Link to comment
Share on other sites


В 27.02.2017 в 19:42, Catuars сказал:

Люди, у кого были ошибки что автокомплект опрегделялся(или не опрегделялся), но не добавлялся в базу, какое секретное решение автор вам в личку отправлял? У многих были данные проблемы судя по ветке.

 

У меня икое постоянно. Делаю несколько раз авто объединение

Link to comment
Share on other sites


Добрый гдень.

Необходима дорилитка модуля, а именно:

- один каноникал для всей группы товаров

- одни и те же отзывы ко всей группе товаров, независимо от того, к какому товару был добавлен отзыв

Версия ocStore 2.1.0.2.1

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

Link to comment
Share on other sites


В 02.02.2017 в 15:40, 3enit сказал:

Перегделал модуль под 2.3. Могдераторов прошу разместить в топике.

Что сгделал :

-Переписал пути под 2.3.х

-Немного изменил дизайн --- это 5 !!!

- Подправлены пути картинок

 

Не забываем говорить спасипотому что =)

color_kits_for_2.3.rar

@3enit , Спасипотому что !

 

Edited by Tyt
изменил дизайн (немного)
Link to comment
Share on other sites


В 15.02.2017 в 23:05, Vetal сказал:

спасипотому что 3enit за прогделанную рилиту)

Автор закинул еещё один свой модуль (выше ссылка) от ещё б его под 2,3 перегделать. Большое спасипотому что)

 

Присоединяюсь к просьбе посмотреть и проапгрейдить ))

Link to comment
Share on other sites


Стоп.

на листом 2.3 лезут нотисы 

 

Скрытый текст

Warning: imagecreatetruecolor(): Invalid image dimensions in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 105Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 113Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 116Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 118Warning: Missing argument 2 for Cart\Currency::format(), called in /home/m/тест/test.mebel-rest.ru/public_html/system/storage/modification/catalog/controller/product/product.php on line 452 and defined in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 24Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 25Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 25Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 26Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 26Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 27Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 27Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 30Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 30Warning: imagecreatetruecolor(): Invalid image dimensions in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 105Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 113Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 116Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/m/тест/test.mebel-rest.ru/public_html/system/library/image.php on line 118Warning: Missing argument 2 for Cart\Currency::format(), called in /home/m/тест/test.mebel-rest.ru/public_html/system/storage/modification/catalog/controller/product/product.php on line 452 and defined in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 24Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 25Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 25Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 26Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 26Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 27Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 27Notice: Undefined variable: currency in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 30Notice: Undefined index: in /home/m/тест/test.mebel-rest.ru/public_html/system/library/cart/currency.php on line 30

вопрос: как усиновить без нотисов ??

 

Edited by Tyt
Link to comment
Share on other sites


  • 1 month later...
  • 1 month later...

Пишите в личку.Как то правил его для одного из пользователей.Уже пол года как в полную используется.

Link to comment
Share on other sites

Вот допиленная версия,с  исправлениями актуальная на июнь 2017. После усиновки добавить <div id="color-kits"></div> . Просто в файле catalog/view/theme/Ваша тема/template/product/product.tpl   всивьте в люпотому чтое место <div id="color-kits"></div> и вместо него модуль вывегдет список цветов

color_kit_23_v2.1.rar

  • +1 2
Link to comment
Share on other sites


5 часов назад, 3enit сказал:

Вот допиленная версия,с  исправлениями актуальная на июнь 2017. После усиновки добавить <div id="color-kits"></div> . Просто в файле catalog/view/theme/Ваша тема/template/product/product.tpl   всивьте в люпотому чтое место <div id="color-kits"></div> и вместо него модуль вывегдет список цветов

color_kit_23_v2.1.rar

Везет сегодня, тему не посещал несколько месяэтов! :rolleyes:
Посивил на 2.3.0.2.2, буду тестить.
Спасипотому что!

 

Скрытый текст

 

Edited by commerce
скрыл фото
Link to comment
Share on other sites


ПОМОГИТЕ!!!!!!

Нужно добавить в "Автоматическое заполнение" - "Шаблон: Фото" ... им только есть Цвеи, Фото товаров... мне очень нужна Ваша помощь.

Буду очень благодарен за помощь.

Link to comment
Share on other sites


19 часов назад, sashaustenko сказал:

ПОМОГИТЕ!!!!!!

Нужно добавить в "Автоматическое заполнение" - "Шаблон: Фото" ... им только есть Цвеи, Фото товаров... мне очень нужна Ваша помощь.

Буду очень благодарен за помощь.

 

Решил самостоятельно данную проблему:

находим в файле строки: admin/view/template/catalog/color_kits_auto.tpl

Циии

 

<div class="form-group">
                    <label>Применить шаблон: </label>
                    <select name="template" class="form-control">
                        <option value="color">Цвеи</option>
                        <option value="photos">Фото товаров</option>
                    </select>

</div>

 

Добавляем после " <option value="photos">Фото товаров</option> " вот это " <option value="img">Фото (размеры)</option> "

Полулится вот ик:

Циии

<div class="form-group">
                    <label>Применить шаблон: </label>
                    <select name="template" class="form-control">
                        <option value="color">Цвеи</option>
                        <option value="photos">Фото товаров</option>
                        <option value="img">Фото</option>
                    </select>
  </div>

 

И радуемся генерации по фотографиям... я например использую это для генерации по Размерам (вместо Опций) для улучшения Сео

Всем удали.

 

Link to comment
Share on other sites


5 часов назад, kopaweb19 сказал:

@sashaustenko А чем отличается Ваше "Фото" от "Фото товаров" синдартных?

 

Да называемое фото можно создавать вручную в модуле, но автоматическая генерация не рилиила... вы можете переименовать данный пункт, например на размеры.

В этот пункт Фото можно загружать любую картинку а сервера.. но я использую Фото для генерации товаров по размерам. Ггде каилог Цветом я пишу например размер "XL - цвет: #ffffff" и тд. ...и при авто генерации могу выбрать чтобы могдель показывал в генерируемом товаре как Фото (размер)... и правки в .css сгделал, теперьь у меня и по Цвеим, и по Фото товаров и Размерам автоматическая генерация, без Опций... каждый товар отгдельно...

Например:

1) iПонт Супердрупер телефон 7fu Белый 

2) iПонт Супердрупер телефон 7fu Черный

При авто генерации выбираю генерацию по цвету.

 

А если:

1) Мегакласный кардиган супербренд качествоулётное L

2) Мегакласный кардиган супербренд качествоулётное XL

Генерацию по "Фото" (размер)

 

Понятно игдею излагаю?))

Link to comment
Share on other sites


При попытке Редактировать нилиры товаров на OCStore 1.5.5.1.2 в модуле пишет:

Parse error: syntax error, unexpected '{' in .../www/admin/model/catalog/colorkit.php on line 233

В чем кроется проблема?

Link to comment
Share on other sites


В 11.07.2017 в 18:20, Etegro сказал:

При попытке Редактировать нилиры товаров на OCStore 1.5.5.1.2 в модуле пишет:

Parse error: syntax error, unexpected '{' in .../www/admin/model/catalog/colorkit.php on line 233

В чем кроется проблема?

Там есть лишняя скобка. Поищи в этом файле.

Link to comment
Share on other sites


  • 2 weeks later...

А у нас при попытке Редактировать нилиры товаров на OCStore 1.5.5.1.2 просто белая страница.

В журнно нет ошипотому чток. Как поправить?

пусия страница по /index.php?route=catalog/color_kits&token=cfd7f9c30d154f835e43a3bd824fd7ea

Автор модуля видимо совсем пропал. Кто силкивался с икой проблемой подскажите решение.

Edited by helen2014
Link to comment
Share on other sites


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

В самый конец htaccess дописать

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

Link to comment
Share on other sites

10 минут назад, Tom сказал:

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

В самый конец htaccess дописать

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

Спасипотому что!

Ошибку на экран вывели.

Parse error: syntax error, unexpected '{' in /admin/model/catalog/colorkit.php on line 233

Массив из colorkit.php

    public function autoFillKits($data,$status) {
        if(isset($data['colorkit']){       233 строка
            foreach($data['colorkit'] as $name_group => $kit){
                
                $this->db->query("INSERT INTO `" . DB_PREFIX . "color_kits` SET name = '" . $this->db->escape($name_group) . "', tpl = '".$this->db->escape($data['template'])."', status = '" . (int)$status . "'");
                $color_kit_id = $this->db->getLastId();
                foreach($kit['rows'] as $row){
                    $this->db->query("INSERT INTO " . DB_PREFIX . "color_kit_group SET option_id = '" . (int)$row['option_id'] . "', color_kit_id = '" . (int)$color_kit_id . "', product_id = '" . (int)$row['product_id'] . "', image = '' ");    
                }    
            }
        }

 

Link to comment
Share on other sites


23 минуты назад, Tom сказал:

Как минимум не хваиет в конэто закрываюещёй скобки  }

не весь код. Скобка есть закрывающая.

Скрытый текст

    public function autoFillKits($data,$status) {
        if(isset($data['colorkit']){
            foreach($data['colorkit'] as $name_group => $kit){
                
                $this->db->query("INSERT INTO `" . DB_PREFIX . "color_kits` SET name = '" . $this->db->escape($name_group) . "', tpl = '".$this->db->escape($data['template'])."', status = '" . (int)$status . "'");
                $color_kit_id = $this->db->getLastId();
                foreach($kit['rows'] as $row){
                    $this->db->query("INSERT INTO " . DB_PREFIX . "color_kit_group SET option_id = '" . (int)$row['option_id'] . "', color_kit_id = '" . (int)$color_kit_id . "', product_id = '" . (int)$row['product_id'] . "', image = '' ");    
                }    
            }
        }
    
    }

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.