RO CSVI

J2Store Product Import

Requirements

J2Store
Import Product

Creating the template

A template can be created by following these steps:

  1. Go to Components -> RO CSVI -> Templates
  2. Click New
  3. Give the template a name
  4. Set Action to Import
  5. Set Component to J2Store
  6. Set Operation to Product
  7. Click Next: Select Source
  8. Source is set default to Load from your computer. No need for change.
  9. Click Next: Select options
  10. The default values are OK, change if needed.
  11. Click Next: Select fields
  12. Nothing needed here as we set to Use column headers as configuration in step 10.
  13. Click Next: Finalize
  14. All done here
  15. Click Close to return to the list of templates or Edit if you want to fine-tune the template further.

J2Store product import create template

Adding the template fields

Template fields can be added by following these steps:

  1. Go to Components -> RO CSVI -> Templates
  2. Click on Template fields
  3. In the Search Tools select your template
  4. Click on New to add a single field or click on Quick Add to add multiple fields.

Quick Add

The Quick Add Option allows you to quickly add multiple fields to a template. It is not possible to set any settings per field here but that can be done after the fields have been added to the template.

Required fields

  • sku

Criteria

These fields make up the criteria to determine if the record is going to be updated or added. If all the criteria fields match an existing record, the record will be updated. If not all the criteria fields match, the record will be added.

 

  • sku

Creating the import file

CSVI uses alias and catid field in order to find the existing Joomla content associated with a product. So to update an existing content you also need to add alias and catid field along with sku field in import file. This way alias and catid fields are used to identify the Joomla article for a J2Store product and sku is used to find the product_id of the J2Store product.

For a new product if there are no title or alias field set in import file then sku field will be used as title and alias and the catid of default category Uncategorised which is 2 is used for Joomla article for a J2Store product.

Run the import

The import can be run by following these steps:

  1. Go to Components -> RO CSVI -> Import
  2. Select the template created earlier
  3. Click Select file
  4. Select the file to import
  5. Click Preview
  6. You now see a preview of the file as to how RO CSVI sees the file
  7. Click Start import
  8. The import is run
  9. The Log details page will be shown with information regarding the import if the Enable logging is enabled in the template

J2Store product import process

Examples

"title";"sku";"price";"vendor_user_email";"manufacturer_name"
"Sample product";"100365";"140";"user1@localhost.loc";"Test Manufacturer"

Example file

j2store_product_import.csv

Related Articles