This tutorial explains how to create a HikaShop price import template, add the fields and how to run the import. Step by step we show you how to perform each task. A video will show you the steps in action so you can follow that as well.
Creating the template
A template can be created by following these steps:
- Go to Components -> RO CSVI -> Templates
- Click New
- Give the template a name
- Set Action to Import
- Set Component to HikaShop
- Set Operation to Price
- Click Next: Select Source
- Source is set default to Load from your computer. No need for change.
- Click Next: Select options
- The default values are OK, change if needed.
- Click Next: Select fields
- Nothing needed here as we set to Use column headers as configuration in step 10.
- Click Next: Finalize
- All done here
- Click Close to return to the list of templates or Edit if you want to fine-tune the template further.
Adding the template fields
Template fields can be added by following these steps:
- Go to Components -> RO CSVI -> Templates
- Click on Template fields
- In the Search Tools select your template
- 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
- product_code
- price_value
Criteria
- product_code
- price_value
Run the import
The import can be run by following these steps:
- Go to Components -> RO CSVI -> Import
- Select the template created earlier
- Click Select file
- Select the file to import
- Click Preview
- You now see a preview of the file as to how CSVI sees the file
- Click Start import
- The import is run
- The Log details page will be shown with information regarding the import if the Enable logging is enabled in the template
Video showing the process
Example file
Examples
Multiple users to one price
To assign multiple users to one price of a product, add user emails separated by | and map to user_email field in import. RO CSVI will find the ID of the users and update price_users field in HikaShop Price database table.
Same goes for price_access field, add multiple usergroups separated by | and RO CSVI will find id of user groups and assign it to price_access field in HikaShop Price database table
Example content
product_code,price_value,price_access,user_email
1001,100,Editor|Registered,This email address is being protected from spambots. You need JavaScript enabled to view it.|This email address is being protected from spambots. You need JavaScript enabled to view it.|This email address is being protected from spambots. You need JavaScript enabled to view it.
1002,120,Editor|Manager|Registered,This email address is being protected from spambots. You need JavaScript enabled to view it.|This email address is being protected from spambots. You need JavaScript enabled to view it.
Update prices
Though price_value field is used as one of the required field, it cannot be used for updating an existing price. price_value field along with product_code field is used to select the existing price row from database. So to update an existing price you need to use price_value_new field with new price along with price_value field with old price.
Example content for updating existing price
product_code,price_value,price_value_new,price_access
1001,100,120,Editor
1002,120,140,Editor
Example content for deleting existing price
product_code,price_value,price_access,price_delete
1001,100,Editor,Y
1002,120,Editor,Y