How to create products
In this part of the documentation, we are going to show you how to create and publish a product from your admin dashboard.
Follow the steps below to create and publish a product:
- Go to Admin. It’s under /admin route of your website. Follow the steps to log in to sanity and make sure to add your URL to the CORS origins list. Once you’ve completed the login you’ll be redirected to your sanity admin. That’ll look something like this:
I already added some demo products here, you’ll see the dashboard empty.
Now let’s go add a product to your store.
- Create a category: go to the category tab, and click on the pen icon to create a new category.
Fill out all the required fields then hit the publish button.
- Create a product: go to the product tab and click on the pen icon. It’ll open up a form to create a new product like this:
Fill out the form with all the necessary product data and hit the publish button. Your product will be live, now it’ll be visible on the storefront.