'. $t->_("price") . ' ' . $data['price'] . ' грн'; $data['html'] .= '
'; $data['html'] .= '' . $t->_("buy") . ''; $data['html'] .= '
' . '' . '' . '' . '' . '
' . '' . '
'; foreach($item['filters'] as $v) { $data['html'] .= '' . $v['value_value'] . ''; } $data['image'] = $item['image']; $data['status'] = $item['status']; $data['product_id'] = $item['product_id']; $data['color'] = $item['color']; $data['group_id'] = $item['group_id']; if(!empty($item['prices'][0])) { $data['recommended_prices']['name'] = $t->_('recommended_prices'); $data['recommended_prices']['stock_availability'] = $item['stock_availability']; $data['recommended_prices']['firm'] = $item['firm']; $data['recommended_prices']['firm_product'] = $t->_('firm_product'); for($i = 0; $i < $special_user['status']; $i++) { $data['recommended_prices']['dealer'][$i]['dealer_price'] = $item['prices'][$i]; $data['recommended_prices']['dealer'][$i]['dealer_name'] = $special_users[$i]['title']; } } echo json_encode($data);