Purpose: Bulk upload commerce categories and their items for the SuiteCommerce webstore.
Commerce categories are a native NetSuite feature to organize items in your SuiteCommerce site. Categories can be accessible through your site's navigation bar, and are also available under higher-level "parent" categories. However, if you have many items and many commerce categories, manually creating each individual record is time-consuming. Fortunately, we can use NetSuite's CSV Import feature to make the process more efficient.
Your website items will be divided into categories. Each category can be subdivided into more categories. Bottom-level categories will contain items. Categories keep your site organized and easy to navigate.
When you are deciding how to organize your website, keep in mind the following guidelines:
All the commerce categories for your site will go into one Catalog. Think of each Commerce Category as a page in one big catalog.
To view your Commerce Catalogs, navigate to Commerce > Content Management > Commerce Catalogs.
There may already be a catalog for your website. If not, click "New Commerce Catalog" and create one:
Open up Excel or your favorite spreadsheet software, and add the following column headers:
Save this file for future use as a template.
Using a copy of the template you built in the previous step, begin filling in the columns with your category and item data. A few notes on this...
Remember to double-check your work! When you are done, save the spreadsheet as a CSV file. It should look something like this:
In this example, “Shirts” and “Pants” are the commerce categories. They are the parents of the subcategories “Tees”, “Polos”, “Jeans”, and “Khakis”.
Note: We’ve had the best luck with dividing the import file into several files, one for each level of category. That is, first we import the file with all the level 1 categories, and then we import the file with all the level 2 categories under them, etc. We’ve run into issues trying to import multiple dependent levels at one go.
After the category imports themselves, we can use the same import template to import a new file that adds items to their respective categories.
Navigate to "Import CSV Records" at Setup > Import/Export > Import CSV Records.
Set the import type to "Website" and the record type to "Commerce Category".
Select the CSV file of commerce categories that you want to upload. Start with the file that has the level 1 categories.
Click "Next".
Select the data handling type:
Click Next until the “Save mapping & Start Import” page. (Since you are only importing one file at a time, you will skip File Mapping.)
Establish the field mapping between your CSV columns and the appropriate Commerce Category field options in NetSuite.
Click "Next".
On the "Save mapping & Start Import" tab, complete the provided fields to label your import for future use, then click "Save & Run"!
View the Commerce Categories at Commerce > Content Management > Commerce Categories to confirm that your information is uploaded as desired.
You can add items manually from the commerce category record if desired. However, items can be also be added to commerce categories via the same saved CSV that you just used for adding or updating commerce categories.
To add an item under a commerce category, enter in the desired data into its respective column of the CSV template. Use the following tips to guide this step:
Note: If your commerce categories were added manually, then they don’t have external IDs. The easiest way to solve this is to create a saved search of all the commerce categories, export the results, copy the internal ID values into the external ID column, and then import the resulting CSV file to update the external id field of the categories.
Here is an example of importing multiple items into multiple commerce categories using our import CSV.
Notice that tshirt02 is added to multiple commerce categories. Only one of them is the primary category, though..
For this step, you will follow the same process as you did for your Category Import. For more details you can revisit the category import section above, but we have provided the same steps in a condensed view here:
Once you’ve imported your items, you can check to make sure they were imported successfully.
View the Commerce Categories at Commerce > Content Management > Commerce Categories. Select an individual commerce category that should have received items. You should find the items under the Items subtab.
To learn more about working with commerce categories, check out this tutorial video:
Hopefully, this helped you set up your SuiteCommerce website to become more useful to customers. If you have any questions and want some free consulting advice, feel free to contact our team at Anchor Group.
We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes there is a related feature to enable or field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!
Want a free paperback copy of this NetSuite e-commerce book? We even pay for shipping... Order the free SuiteCommerce book today!
Tagged with Training