@mazenelmasry
Into functions.php (at start place function):
function patricia_item_extra($item_id) {
if($item_id > 0) {
$db_prefix = DB_TABLE_PREFIX;
$query = "SELECT * FROM {$db_prefix}t_item_veronika s WHERE fk_i_item_id = " . $item_id . ";";
$result = Item::newInstance()->dao->query( $query );
if( !$result ) {
$prepare = array();
return false;
} else {
$prepare = $result->row();
return $prepare;
}
}
}
In item.php find this code:
$mobile = '';
if($mobile == '') { $mobile = osc_item_city_area(); }
if($mobile == '' && osc_item_user_id() <> 0) { $mobile = $item_user['s_phone_mobile']; }
if($mobile == '' && osc_item_user_id() <> 0) { $mobile = $item_user['s_phone_land']; }
if($mobile == '') { $mobile = __('No phone number', 'patricia'); }
and replace it with:
$item_extra = patricia_item_extra( osc_item_id() );
$mobile = $item_extra['s_phone'];
if($mobile == '') { $mobile = osc_item_city_area(); }
if($mobile == '' && osc_item_user_id() <> 0) { $mobile = $item_user['s_phone_mobile']; }
if($mobile == '' && osc_item_user_id() <> 0) { $mobile = $item_user['s_phone_land']; }
if($mobile == '') { $mobile = __('No phone number', 'patricia'); }
This will work if table t_item_veronika is still in your database and you have not removed it.