Hello,
my customer would like to work in the following way:
- export all products with all available fields
- open that export file in Excel
- apply changes and additions to this Excel sheet
- save that sheet
- re-import that file
This seems to be a reasonable wish, but very complicated (if not impossible) to achieve with CSVI. I've been able to set up the required templates to assure a match between the fields. But I don't seem to be able to use delimiters that are a)good for Excel (; and " and b)not included in the data (the customer uses ; and " in his data) and c)good for a re-import. If I save the altered data from Excel in a CSV file I end up with a file that has double "" and confusion with ;
So is there an easy way to export/import Virtuemart products using CSVI and Excel in together and if so is there a tutorial?
Virtuemart version 3.0.8
CSVI Pro: 5.21.2
Thanks and best regards
Petra
- p.barg
- RO CSVI
- Monday, 31 August 2015
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello Petra,
- export all products with all available fieldsThat is already a bad idea. You should only export the fields you really need.
This seems to be a reasonable wishVery reasonable
But I don't seem to be able to use delimiters that are a)good for ExcelIn Europe Excel uses a semi-colon and double-quotes.
and b)not included in the dataYour delimiters can be included in the data as the CSV standard has a solution for that too. Look at this example of a valid CSV file
"product_sku";"product_desc"
"ABC";"This is a description; A description with ""extra"" use of the delimiters"
Notice the double double-quotes inside the description.That is how CSV readers know this is a double-quote beloning to the text.If I save the altered data from Excel in a CSV file I end up with a file that has double "" and confusion with ;How is the data confused?
So is there an easy way to export/import Virtuemart products using CSVI and Excel in together and if so is there a tutorial?There is no tutorial on how to use Excel. There are tutorials on how to import/export products but you seem to have that covered. The problem with Excel is that you get no control whatsoever on how the file is saved. One thing you need to do is set the option Excel CSV to Yes in your export template and in the import template set Auto-detect delimiters to No and specify your delimiters manually.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hello RolandD,
thanks for getting back to me.
In fact, the main problem is that after saving my file back to CSV all text delimiters are gone.
Example:
CSV original:
"product_sku";"product_desc"
"ABC";"This is a description; A description with ""extra"" use of the delimiters"
After saving it back using Excel:
product_sku;product_desc
ABC;This is a description; A description with ""extra"" use of the delimiters
I guess that's what you mean by saying: "The problem with Excel is that you get no control whatsoever on how the file is saved", right?
The removal of the " as text delimiters leads to problems with ; messing it up and others.
We have written an Excel macro in order to overcome that problem, but it's always hard to tell customers to use such a macro... So, the feature I was really looking for was an equivalent to your "Excel CSV" for the import template.
thanks for getting back to me.
In fact, the main problem is that after saving my file back to CSV all text delimiters are gone.
Example:
CSV original:
"product_sku";"product_desc"
"ABC";"This is a description; A description with ""extra"" use of the delimiters"
After saving it back using Excel:
product_sku;product_desc
ABC;This is a description; A description with ""extra"" use of the delimiters
I guess that's what you mean by saying: "The problem with Excel is that you get no control whatsoever on how the file is saved", right?
The removal of the " as text delimiters leads to problems with ; messing it up and others.
We have written an Excel macro in order to overcome that problem, but it's always hard to tell customers to use such a macro... So, the feature I was really looking for was an equivalent to your "Excel CSV" for the import template.
Accepted Answer
Pending Moderation
Hey Petra,
I gave it a try with Excel 2010 here an it produces this CSV file:
Not sure what is going on with your Excel. In Excel, make sure you save the file as CSV (Comma delimited) and not as one of the other ones.
The macro shouldn't be needed and I agree, it is difficult to explain it to users.
After saving it back using Excel:That is actually an invalid CSV.
product_sku;product_desc
ABC;This is a description; A description with ""extra"" use of the delimiters
The removal of the " as text delimiters leads to problems with ; messing it up and others.Correct.
I gave it a try with Excel 2010 here an it produces this CSV file:
product_sku;product_desc
ABC;"This is a description; A description with ""extra"" use of the delimiters"
and this is a correct CSV file.Not sure what is going on with your Excel. In Excel, make sure you save the file as CSV (Comma delimited) and not as one of the other ones.
So, the feature I was really looking for was an equivalent to your "Excel CSV" for the import template.It isn't a feature CSVI needs. Programs should save correct CSV format files.
The macro shouldn't be needed and I agree, it is difficult to explain it to users.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »