Projekt

Allgemein

Profil

GX-Bug #51374 » CrossSellingFix.patch

Till Tepelmann, 02.05.2017 18:39

Unterschiede anzeigen:

src/includes/classes/product.php (revision )
405 405
				$cross_query = xtDBquery($cross_query);
406 406
				if(xtc_db_num_rows($cross_query, true) > 0)
407 407
				{
408
					$cross_sell_data[$cross_sells['products_xsell_grp_name_id']] = array('GROUP' => xtc_get_cross_sell_name($cross_sells['products_xsell_grp_name_id']), 'PRODUCTS' => array());
408
					$cross_sell_data[0][] = array('GROUP' => xtc_get_cross_sell_name($cross_sells['products_xsell_grp_name_id']), 'PRODUCTS' => array());
409 409
				}
410 410

  
411 411
				while($xsell = xtc_db_fetch_array($cross_query, true))
412 412
				{
413
					$cross_sell_data[$cross_sells['products_xsell_grp_name_id']]['PRODUCTS'][] = $this->buildDataArray($xsell);
413
					$cross_sell_data[0]['PRODUCTS'][] = $this->buildDataArray($xsell);
414 414
				}
415 415
			}
416 416
			return $cross_sell_data;
    (1-1/1)