Hello Raiwa,
same issue but on different file
Code: Select all
PHP Notice: Undefined offset: 1 in /home/xxxx/public_html/shop/includes/system/override/qtpro/pad_sequenced_dropdowns.php on line 89
line 85-97
Code: Select all
for($o = 0; $o < sizeof($attributes); $o++) {
$s = sizeof($attributes[$o]['ovals']);
for ($a = 1; $a < $s; $a++) {
$stock_sum = 0;
$attributes_combination = $attributes[$o]['oid'] . '-' . $attributes[$o]['ovals'][$a]['id'];
// loop through products_attrib_stock array and check for stock
foreach ($this->products_attrib_stock as $attrib_combs => $stock) {
if ( strpos($attrib_combs, $attributes_combination) !== false) {
$stock_sum += $stock;
}
}
$out_of_stock = ($stock_sum > 0)? false : true;
}
I applied same fix from the previous post to line 89 but its not help
Code: Select all
$attributes_combination = $attributes[$o]['oid'] . '-' . $attributes[$o]['ovals'][$a]['id'] ?? 0;
thank you for your help
Omar