Обнаружил ошибку:
в [опции] создаю несколько [значений], задаю опции статус [список с количеством],
в карточке товара образуется выпадающий список (тут всё нормально),
!НО! если пользователь выбирает что-либо в выпадающем списке, при этом забывает указать [количество] и нажимает [В КОРЗИНУ] -
сайт вылетает с ошибкой:
Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in.../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in.../system/storage/modification/system/library/cart/cart.php on line 356Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in.../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 356Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 356Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 356Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 356Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 320Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 321Notice: Undefined offset: 1 in .../system/storage/modification/system/library/cart/cart.php on line 356
и более не работает, пока не восстановить файл .../system/storage/modification/system/library/cart/cart.php из бэкап-а, [сбросить] и [обновить] [Менеджер дополнений]
Сбойный файл и файл из бэкап-а (без ошибки) прилагаю.
cart.php
cart (файл из бэкапа).php
Мой комплект:
OC 2.3.0.2. (стандартный шаблон)
Simple
autocalc_price_option_OC2_v3.0.10.ocmod.xml
1_options_with_quantity_v2.0.11.ocmod.xml