Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Поддержка] Комплектующие для товара


 Share

Recommended Posts

Добрый день.

 

А как сделать так, чтобы комплектующие автоматически падали в корзину при добавлении товара из категории?

Link to comment
Share on other sites


17.08.2022 в 08:26, aTroll сказал:

чтобы комплектующие автоматически падали в корзину при добавлении товара из категории?

из коробки, нет такого функционала

комплектующие, добавляются только со страницы товара

Link to comment
Share on other sites

  • 3 months later...

Добрый день! После установки вот ошибка, Версия ocStore 3.0.3.7 Шаблон дефолтный

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

Fatal error: Uncaught Exception: Error: Table 'antenmar_buy.oc_product_in_complect' doesn't exist<br />Error No: 1146<br />select `complect_id` from oc_product_in_complect where `product_id` = '41067' in /home/antenmar/antenmarket.com.ua/www/system/library/db/mysqli.php:41 Stack trace: #0 /home/antenmar/antenmarket.com.ua/www/system/library/db.php(45): DB\MySQLi->query('select `complec...') #1 /home/antenmar/antenmarket.com.ua/www/catalog/model/catalog/complect.php(7): DB->query('select `complec...') #2 /home/antenmar/antenmarket.com.ua/storage/modification/system/engine/loader.php(248): ModelCatalogComplect->checkComplectsInProduct('41067') #3 /home/antenmar/antenmarket.com.ua/www/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #4 /home/antenmar/antenmarket.com.ua/storage/modification/catalog/controller/product/complect.php(24): Proxy->__call('checkComplectsI...', Array) #5 /home/antenmar/antenmarket.com.ua/storage/modification/system/engine/action.php(79): ControllerProductComplect->index(Array) #6 /home/an in /home/antenmar/antenmarket.com.ua/www/system/library/db/mysqli.php on line 41

 

Link to comment
Share on other sites


30.11.2022 в 17:51, vodila сказал:

После установки вот ошибка, Версия ocStore 3.0.3.7 Шаблон дефолтный

для версии opencart 3.0
выполнить в phpMyАdmin  запросы.  не забываем заменить префикс таблиц(oc_),  если у вас другой.
CREATE TABLE IF NOT EXISTS `oc_product_in_complect` (
  `id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  `product_id` int(11) NOT NULL,
  `complect_id` int(11) NOT NULL,
  `count_p`  int(11) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8


CREATE TABLE IF NOT EXISTS `oc_product_complect_option` (
  `product_id` int(11) NOT NULL,
  `complect_id` int(11) NOT NULL,
  `option_value_id`  int(11) NOT NULL
 ) ENGINE=MyISAM DEFAULT  CHARSET=utf8

  • +1 1
Link to comment
Share on other sites

Добрый день! Добавляю комплектующие в товар, сохраняю, но при следующем редактировании товара вкладка "Комплектующие" пустая. Выходит что добавить или удалить комплектующие нельзя.

Edited by vodila
Link to comment
Share on other sites


01.12.2022 в 13:38, vodila сказал:

Добрый день! Добавляю комплектующие в товар, сохраняю, но при следующем редактировании товара вкладка "Комплектующие" пустая. Выходит что добавить или удалить комплектующие нельзя

После второго раза сохранилось.

Link to comment
Share on other sites


01.12.2022 в 17:13, vodila сказал:

После второго раза сохранилось.

сейчас, все нормально? или что-то не работает?

Link to comment
Share on other sites

22.08.2018 в 14:11, fanatic сказал:

 

мой модуль, не поломал работу  мадуля вывода красивого сообщения.   просто он использует свой вывод сообщения.

нужно добавить вывод вашего модуля в success

Подскажите, как это сделать,. Потому что если купить из карточки товара то не выходит красивое сообщение.

Link to comment
Share on other sites


01.12.2022 в 17:53, vodila сказал:

Как сделать что бы в карточке товара галочки возле комплектующих стояли по умолчанию.

catalog\view\theme\default\template\product\complect.twig
найти

<td>
    <div class="form-group">
      <input class="product-selected" id="checkbox{{ c.id }}" type="checkbox" name="product_selected[]" value="{{ c.id }}">
    </div>
</td>


и добавить инпуту checked

Link to comment
Share on other sites

01.12.2022 в 19:08, fanatic сказал:

catalog\view\theme\default\template\product\complect.twig
найти

<td>
    <div class="form-group">
      <input class="product-selected" id="checkbox{{ c.id }}" type="checkbox" name="product_selected[]" value="{{ c.id }}">
    </div>
</td>


и добавить инпуту checked

Большое спасибо! Получилось.

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

×
×
  • 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.