RO CSVI
Install RO CSVI in 5 steps
| RO CSVI
Step to be followed for installing RO CSVI automatically
- Go to the extension manager
- Select the file on your computer to install RO CSVI
- Complete the installation by clicking on the Upload & Install
- After finishing the installation you will see the message 'Installing component was successful'
- RO CSVI is now ready to be used

Manual installation of RO CSVI
In some cases automatic install of RO CSVI fails using Joomla extension manager. This section describes manual installation of RO CSVI using Joomla discover feature.
Copying the files
- Download RO CSVI package from the download section
- Unzip the package on your local computer
- Unzip RO CSVI component on your local computer
- Connect to your website using an FTP client
- Open to the folder administrator/components on the server
- Create a folder named com_csvi on the server
- Open the folder com_csvi on the server
- Copy all files and folders from administrator/components/com_csvi from your local computer to same server location.
- Also copy the files csvi.xml and script.php to the folder administrator/components/com_csvi
- Go back to the main folder
- Open to the folder components on the server
- Create a folder named com_csvi on the server
- Open the folder com_csvi on the server
- Open the folder components/com_csvi on your local computer
- Copy all files and folders to the com_csvi folder on the server
- Go back to the main folder
- Create a folder Rocloud on the server in libraries folder
- Open libraries/Rocloud folder on your local computer
- Copy all files and folders from libraries/Rocloud from your local computer to same server location
- Log in to the administrator section of your website
- Go to System from menu and under Install section click on Discover
- Click on the Discover button in the toolbar
- Select RO CSVI of type Component from the list.
- Click on the Install button in the toolbar
RO CSVI is now ready for use.
You can then install all plugins from RO CSVI packages using Joomla extension manager.
How to read a UTF-8 CSV file in Excel 2007?
| RO CSVI
To read a UTF-8 CSV file into Excel 2007, follow these steps:
- Download the exported CSV/XLS file from your website.
- Open Excel 2007
- Open a new file
- Click the Data Menu option
- Click "From Text" button
- Select the file you downloaded
- Make sure "Delimited" is selected and Press Next
- Select 65001: Unicode UTF8 and press Next
- Check the delimiter characters that you know are in your file like Comma or Tab or whatever is in your case. You can select more than one
- Proceed to Next Step and Finish
- Your excel file will be ready with all you data displayed correctly
Replacement: Append text
| RO CSVI
To add some custom text to the end of a field you can use the Replacement feature of RO CSVI.
Let's say you want to add FREE POSTAGE to your product description field, here is how:
- Go to Replacement
- Make a new entry with the following settings
- New Old value: /$/
- New New value: FREE POSTAGE
- Type: Regular expression
- Template: Select the template you use for the export
- Field: Select the field the replacement is to be used for
- Click on the Add icon
- Do an export of your template
The value of FREE POSTAGE is only an example here of course, you can add any value you like to any field you like.
Replacements
| RO CSVI

Requirements
- CSVI Pro 6.0+
- Joomla 3.4.3+
- PHP 5.4
Background information
The replacement feature can be used to change data during export or before import.
Types of replacements
There are 2 types of replacements that can be done:
- Regular text
- Regular expressions
Regular text
A regular text replacement is a simple replacement where value x gets replaced with value y. For example replace NL with Netherlands. Any text found to match NL is being replaced with Netherlands.
Regular expressions
A regular expression replacement is a more advanced replacement using regular expressions. For example you can add extra text to the end of a field.
Creating replacement rules
From Components -> CSVI pro ->Templates tab -> Rules, Click New to add a new rule using replace plugin.
For example to create a rule to replacing text "NL" to "Netherlands" in virtuemart product description.
- Give a descriptive name for the rule in name field
- Select Action as Import
- Select Plugin as CSVI Replace
- Click on load plugin button

Find
Give here the text that CSVI needs to look for. When doing:
- A regular text replacement the text here is just plain text for example NL.
- A regular expression replacement the text here needs to be enclosed in forward slashes for example /NL/
It is possible to look for and replace multiple values in 1 replacement rule. Multiple values must be separated by a pipe symbol. When doing:
- A regular text replacement the text is only separated by a pipe symbol for example NL|DE|US
- A regular expression replacement each text is enclosed in forward slashes for example /NL/|/DE/|/US/
Replace
Give here the text CSVI needs to use for replacement for example Netherlands. Multiple values must be separated by a pipe symbol for example Netherlands|Germany|United States.

Multiple values
If your find and replace contains multiple values to look for, set this to Yes so all values will be searched for and replaced independently.
Method
Specify here if CSVI should do a regular text or a regular expression replacement
Examples
Add text at beginning of a value
This example adds the text Before to the value found
Find: /^/
Replace: Before
Method: Regular expression
Add text at the end of a value
This example adds the text After to the value found
Find: /$/
Replace: After
Method: Regular expression
Change text to lowercase
This changes the value to lowercase
Find: /(.*)/e
Replace: strtolower('\1')
Method: Regular expression
This will not work with PHP 7 and higher. CSVI 6.7.0 will have a new rule plugin that makes this possible.
Change text to uppercase
This changes the value to uppercase
Find: /(.*)/e
Replace: strtoupper('\1')
Method: Regular expression
This will not work with PHP 7 and higher. CSVI 7.0 will have a new rule plugin that makes this possible.
Change first letter to uppercase
This changes the first letter of the value to uppercase, if that letter is alphabetic
Find: /(.*)/e
Replace: ucfirst('\1')
Method: Regular expression
This will not work with PHP 7 and higher. CSVI 7.0 will have a new rule plugin that makes this possible.
Replace text
This replaces all occurences of a with aa in the value
Find: /(.*)/e
Replace: str_ireplace('a', 'aa', '\1')
Method: Regular expression
This will not work with PHP 7 and higher. CSVI 7.0 will have a new rule plugin that makes this possible.
Take part of the value
This takes the first 5 characters of the value
Find: /(.*)/e
Replace: substr('\1', 0, 5)
Method: Regular expression
This will not work with PHP 7 and higher. CSVI 7.0 will have a new rule plugin that makes this possible.
Excel and CSV
| RO CSVI
The flexibility of Excel with CSV files is quite limited, so limited even that you cannot use your own field delimiter, text enclosure and encoding when opening a CSV file.