Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter apofisgold

    (@apofisgold)

    I would like to clarify that in xml files there are other values in nodes that need to be changed to other text values, and there are also values in nodes that do not need to be changed.

    An example of what needs to be changed:

    function house_type_propertynew($type){
    $type = str_replace('Parking Space', 'garage', $type);
    $type = str_replace('Apartamento', 'Apartment', $type);
    $type = str_replace('Ground Floor', 'Apartment', $type);
    $type = str_replace('Flat', 'Apartment', $type);
    $type = str_replace('detached house', 'SemiDetached', $type);
    $type = str_replace('Semi', 'SemiDetached', $type);
    $type = str_replace('Detached Villa', 'SemiDetached', $type);
    $type = str_replace('Semi-detached', 'SemiDetached', $type);
    $type = str_replace('Semi-Detached House', 'SemiDetached', $type);
    $type = str_replace('semi-detached-villa', 'SemiDetached', $type);
    $type = str_replace('Semi - Detached Villa', 'SemiDetached', $type);
    $type = str_replace('Terraced house', 'Town House', $type);
    $type = str_replace('Townhouse', 'Town House', $type);
    $type = str_replace('terraced house', 'Town House', $type);
    $type = str_replace('House – Townhouse', 'Town House', $type);
    $type = str_replace('Quad Bungalow', 'Quad', $type);
    $type = str_replace('Quad House', 'Quad', $type);
    $type = str_replace('Quadplex', 'Quad', $type);
    $type = str_replace('Quad Villa', 'Quad', $type);
    $type = str_replace('Chalet', 'Villa', $type);
    $type = str_replace('Chalets Pareados', 'Villa', $type);
    $type = str_replace('Village house', 'Villa', $type);
    $type = str_replace('Village House', 'Villa', $type);
    $type = str_replace('Villa with annex', 'Villa', $type);
    $type = str_replace('Villas Pareados', 'Villa', $type);
    $type = str_replace('Finca / Country Property', 'Country Estate', $type);
    $type = str_replace('finca', 'Country Estate', $type);
    $type = str_replace('Country Property/Finca', 'Country Estate', $type);
    $type = str_replace('Country Property', 'Country Estate', $type);
    $type = str_replace('Country House', 'Country Estate', $type);
    $type = str_replace('Plot of Land', 'Plot', $type);
    $type = str_replace('Building Plot', 'Plot', $type);
    $type = str_replace('land', 'Plot', $type);
    $type = str_replace('Land', 'Plot', $type);
    $type = str_replace('Restoration Project', 'Plot', $type);
    $type = str_replace('Duplex apartment', 'Duplex', $type);
    $type = str_replace('Bar', 'Restaurants and Bars', $type);
    $type = str_replace('Bar/Restaurant', 'Restaurants and Bars', $type);
    $type = str_replace('Commercial Unit', 'commercial', $type);
    $type = str_replace('Commercial Building', 'commercial', $type);
    $type = str_replace('Locales Comerciales', 'commercial', $type);
    $type = str_replace('Business premises', 'commercial', $type);
    $type = str_replace('Bungalows Planta Baja', 'Bungalow', $type);
    $type = str_replace('Bungalows Planta Alta', 'Bungalow', $type);
    return $type;}
    
Viewing 1 replies (of 1 total)