Skip to content

Instantly share code, notes, and snippets.

@radiustheme
Last active January 28, 2024 12:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.
Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.
How to import sample data for classified listing like categories & locations
{
"locations": [
{
"name": "New York",
"slug": "",
"description": "",
"meta": [
{"image_id" : 45},
{"_icon" : ""}
],
"order": 0,
"child": [
{"name": "New York", "order": 1 },
{"name" : "Port Chester", "order": 2},
{"name" : "Mineola", "order": 3},
{"name" : "Mount Vernon", "order": 4},
{"name" : "Hempstead", "order": 5},
{"name" : "Lynbrook", "order": 6},
{"name" : "Yonkers", "order": 7},
{"name" : "Franklin Square", "order": 8},
{"name" : "Newburgh", "order": 9},
{"name" : "Buffalo", "order": 10},
{"name" : "Long Beach", "order": 11},
{"name" : "Ithaca", "order": 12},
{"name" : "New Rochelle", "order": 13},
{"name" : "Freeport", "order": 14},
{"name" : "Rochester", "order": 15},
{"name" : "Albany", "order": 16},
{"name" : "Valley Stream", "order": 17},
{"name" : "Poughkeepsie", "order": 18},
{"name" : "Baldwin", "order": 19},
{"name" : "West Hempstead", "order": 20},
{"name" : "Schenectady", "order": 21},
{"name" : "White Plains", "order": 22},
{"name" : "Uniondale", "order": 23},
{"name" : "North Valley Stream", "order": 24},
{"name" : "Ossining", "order": 25}
]
}
],
"categories": [
{
"name": "Electronics",
"slug": "",
"description": "",
"meta": "",
"order": 0,
"child":[
{
"name": "Mobile Phone",
"order": 1
},
{
"name": "Mobile Phone Accessories",
"order": 2
},
{
"name": "Computers & Tablets",
"order": 3
},
{
"name": "Computer Accessories",
"order": 4
},
{
"name": "TVs",
"order": 5
},
{
"name": "TV & Video Accessories",
"order": 6
},
{
"name": "Cameras & Camcorders",
"order": 7
},
{
"name": "Audio & MP3",
"order": 8
},
{
"name": "Video Games & Consoles",
"order": 9
},
{
"name": "Freeze",
"order": 10
},
{
"name": "Air Conditioner (AC)",
"order": 11
},
{
"name": "Other Electronics",
"order": 11
}
]
}
],
"listings":[
]
}
@WeedsLists
Copy link

WeedsLists commented Sep 1, 2023

This is my site https://www.weedslists.com and I am doing this to learn and in my spare time. I have uploaded about 4600 items in about 20 to 30 mins, using WP inp exp plugin. I just create one example item and exported it with all the settings that I need like a template and then I modify the .csv file with all the items like 2000 or 4000 items and then just import them in with the settings from the export file and its that easy.

@matt7570
Copy link

matt7570 commented Oct 2, 2023

I'd like to report that the import function won't allow duplicated entries. It shouldn't be like that. What it should do is creating duplicated entries with different slugs. Can you fix that?

@bingobutt69
Copy link

Hi Guys, we are you the classima radius theme and want to be able to have people list and sell from global location, and buy from global locations. What is the best way to add global locations and to give this option to sellers without having to input everything manually. When I click classifieds and location there is no option to upload a location file.

Best Regards

Tania

@fodor95
Copy link

fodor95 commented Dec 27, 2023

did anyone manage to upload sample listings in the end? i have managed only to import locations...

@yvbc
Copy link

yvbc commented Jan 6, 2024

This is my site https://www.weedslists.com and I am doing this to learn and in my spare time. I have uploaded about 4600 items in about 20 to 30 mins, using WP inp exp plugin. I just create one example item and exported it with all the settings that I need like a template and then I modify the .csv file with all the items like 2000 or 4000 items and then just import them in with the settings from the export file and its that easy.

how did you do it? I couldn't do it here.

@yvbc
Copy link

yvbc commented Jan 6, 2024

did anyone manage to upload sample listings in the end? i have managed only to import locations...

how did you do it? I couldn't do it here.

@bingobutt69
Copy link

bingobutt69 commented Jan 7, 2024 via email

@guptsanchit
Copy link

Hi,

I want to import data. I need guidance on it.

My data is available in an Excel sheet.

guptsanchit@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment