Osclass allows administrators to manage location data, including countries, regions, and cities. These locations are used to categorize listings and improve search functionality. This guide covers how to add, edit, delete, and import locations.
Managing Locations
Locations in Osclass are divided into three levels:
Countries - Top-level location categories.
Regions - Subdivisions within countries.
Cities - Individual cities under regions.
Locations structure
Adding Locations
To add new locations manually:
Go to Settings > Locations.
Click Add new under the appropriate category (Country, Region, City).
Fill in the required fields such as name, native name, phone code, currency, and slug.
Click Save.
Adding Locations from Market
Osclass allows importing predefined locations from the Market section:
Navigate to Market > Locations in the Osclass backoffice.
Select the country or region you want to import.
Click Download to install it automatically.
After installation, the locations will be available in Settings > Locations.
More details about Osclass location management can be found at Osclass Geolocation.
Editing Locations
Existing locations can be modified:
Find the location in the list.
Click the Edit button.
Modify details such as name, slug, phone code, and currency.
Click Save.
Edit country
Deleting Locations
Locations can be removed, but this action is irreversible and may affect existing listings.
Select the location(s) using checkboxes.
Click the Remove selected button.
Confirm the deletion in the dialog box.
Note: Deleting a country will also remove its regions and cities.
Importing Locations
Osclass allows importing predefined locations from its database:
Click Import new in the Countries section.
Select the country to import.
Click Import.
Location Settings
Each location has configurable properties:
Name: Official location name.
Native Name: Name in the local language.
Phone Code: Country dialing code (e.g., 1 for the USA).
Currency Code: Default currency for the country (e.g., USD, EUR).
Slug: A unique URL-friendly identifier.
Bulk Actions
Administrators can manage multiple locations at once:
Enable or disable multiple locations.
Delete multiple locations in bulk.
Conclusion
Managing locations properly in Osclass ensures accurate listing categorization and improved search functionality. Administrators should carefully add, edit, and delete locations to maintain data consistency.