Вот содержимое массива $product в этом блоке
Array
(
[product_id] => 165494
[product_code] => 470
[product] => Трусики для девочки
[amount] => 1
[product_options] => Array
(
)
[price] => 85
[stored_price] => N
[main_pair] => Array
(
[pair_id] => 2249121
[image_id] => 0
[detailed_id] => 503052
[position] => 0
[object_id] => 165494
[object_type] => product
[detailed] => Array
(
[object_id] => 165494
[object_type] => product
[type] => M
[image_path] => https://test.ru/images/detailed/503/9a644763834634650894eff413b1_b2956ab4f94311ecbbaa0894eff413b1.jpg
[alt] =>
[image_x] => 899
[image_y] => 1199
[http_image_path] => http://test.ru/images/detailed/503/9a644763803453453894eff413b1_b2956ab4f94311ecbbaa0894eff413b1.jpg
[https_image_path] => https://test.ru/images/detailed/503/9a644345345baa0894eff413b1_b2956ab4f94311ecbbaa0894eff413b1.jpg
[absolute_path] => test.ru/images/detailed/503/9a644763802d3453454894eff413b1_b2956ab4f94311ecbbaa0894eff413b1.jpg
[relative_path] => detailed/503/9a644763802d11345345344eff413b1_b2956ab4f94311ecbbaa0894eff413b1.jpg
)
)
[extra] => Array
(
[product_options] => Array
(
)
[unlimited_download] => N
[updated_timestamp] => 1662964694
)
[stored_discount] => N
[company_id] => 1
[amount_total] => 1
[options_type] => P
[exceptions_type] => F
[options_type_raw] => P
[exceptions_type_raw] => F
[modifiers_price] => 0
[is_edp] => N
[edp_shipping] => N
[discount] => 0
[promotions] => Array
(
)
[base_price] => 85
[category_ids] => Array
(
[0] => 388
[1] => 389
[2] => 391
)
[display_price] => 85
)