1. RobertoDS
  2. RO CSVI
  3. Monday, 18 September 2017
  4.  Subscribe via email
Hallo...
I'm trying to create a multivariant import from two files the customer gave me...
Itryed to follow the online instruction on cvsimproved but without success:
the first file I imported easyly but the second one is something really hard for me.. do you have any suggestion?

I attatche the two files

The file 1 is the base information of the products DispWeb1.xls DispWeb2.xls
The file 2 is the stock level for each variant
The sku is the composition of thefirst 3 column and for the variant i add the size (taglia) column ...

but wasn't be able to see a preview of the multivariant import of the second file (using the composition of the first 3 column as parent sku and copying that and adding the size column to the sku to obtain the product sku)
Accepted Answer Pending Moderation
Hello,
One difference i see in your import file from the example in CSVI multi variant tutorial is that both parent and child rows has multi variant values but as per tutorial it should be only to parent row. Since you are saying you are testing the file, please remove the multi variant added as template fields set with default value and add it only to the parent row in your import file and then run the import. If you have any issues post the debug log with latest import file.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Ok..to test if the sistem could import the parent and the children i realized a file with the template standard similar to the file of the tutorial.. but i did'nt get the result i've expected..

It is not working neither
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
It would be normal to be ableto import a variant file once you have the parent present in the DB...
Can you explain me better why the system is not able to do that? .. can it be an upgrade (amazon, ebay etc.. work in the same way: you can only import the variant data)

Variants are child products and child products are individual products by itself and you can always update the child product details using a different import file than the parent. But for updating multi variant data CSVI has a standard format to link parent and child product.

Pleeese! can you solve the issue of attatcing a child to a parent?
(if there is already a child for each parent the other would be imported in the second import?)

You are first user asking for this feature request if we get more of this request we will think of adding it to CSVI in our future versions.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
It would be normal to be ableto import a variant file once you have the parent present in the DB...
Can you explain me better why the system is not able to do that? .. can it be an upgrade (amazon, ebay etc.. work in the same way: you can only import the variant data)

I'm not able to create a script as you asked;furthermore I have other client with this request (be able to import the update of the variant quantities)... and all can give me the parent file and a different variant file (different files templates for each clients) but not a non standard file with mixed parents'childrens data

Pleeese! can you solve the issue of attatcing a child to a parent?
(if there is already a child for each parent the other would be imported in the second import?)
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
You cannot combine xls files using CSVI but you need to check on command line scripting to combine the files before you run the import using cron.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
The problem is that i don't know how to do that... I've learned to create rules but not combination of xls files
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
My question about rules was general: is there a way to use the csvi rules to retrive the parent information and create a complete child product?

There is no such CSVI rule for getting any product information or to create child product.

The alternative way:

If I have one file with all childs and all the informationforeach child (name, size, etc).. it is possible to create the product with its variants

Even by having child product with all its details we need parent product row so CSVI can update child product value to the parent product.

Alternative 2:
It is possible to create aproduct with its variant using the old style way ( http://csvimproved.com/support/import/203-virtuemart/922-multiple-customfields-filter-for-virtuemart )
in this case the problemishow to add the stock quantity

The link you posted is for importing filters that can be used for custom fields in VirtueMart extension. You issue is that you need your child product to be added as variant for parent product.

- sorry but i must solve this problem with what I have/can do -

You can try writing code to combine two files into one. That would be the best solution at this point of time.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
My question about rules was general: is there a way to use the csvi rules to retrive the parent information and create a complete child product?

The alternative way:

If I have one file with all childs and all the informationforeach child (name, size, etc).. it is possible to create the product with its variants

Alternative 2:
It is possible to create aproduct with its variant using the old style way (https://csvimproved.com/support/import/203-virtuemart/922-multiple-customfields-filter-for-virtuemart)
in this case the problemishow to add the stock quantity

- sorry but i must solve this problem with what I have/can do -
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,
...how itis possible.. the parent sku is indicated on the import....

Let me explain what is happening right now so you understand why the product and child variants are not linked in your case. If you see the example in the tutorial, the parent product is the first row and it is a product itself. When import happens there is an entry which happens in VirtueMart product custom fields database table for this parent product and when the next rows (child product) is imported with the product_parent_sku, the value of this child product is collected and at the end the custom_params field for the parent product row is updated with collected value. This process happens hand to hand when the products are all in one import file. Since you have them in two different files for parent and child, this process of collecting and updating parent row does not happen.

Is there any wayto use a custom rule to do that?

There are no rules in CSVI to combine two files.

... "CLI script"?

I meant Command Line Interface script to append two files as you mentioned that these files are to be imported using cron jobs.

if I'm able to persuade my cliento to realize a single file with all the duplicated data but no parent sku it is possibletoimport any row adding the size field ?
(I cannot have realized a file with the parent and the childrens together as in the tutorial)

My explanation above is clear to understand that why the import file needs both parent row and child row with parent product sku so they are linked during import.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
In alternative the question is:
if I'm able to persuade my cliento to realize a single file with all the duplicated data but no parent sku it is possibletoimport any row adding the size field ?
(I cannot have realized a file with the parent and the childrens together as in the tutorial)
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
...how itis possible.. the parent sku is indicated on the import....
Is there any wayto use a custom rule to do that?
... "CLI script"?
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Hello,
Looking at the screenshots the parent products are imported good, child products are also added and are linked to their respective parent, product stock is also updated. The only and the difficult issue i see now is that the multi variant field of child products VM-G-NUMERO-2P are not linked to the parent product and so the values are missing in VirtueMart product details page and on custom fields tab. That is because when you run the import of your second file with child products CSVI does not know who the parent is to link them. So the only option is to combine the both import files you having using CLI script before running the import. I cannot think of any other solution for this issue.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Yess as you said... evenif i importedasmaller version of the second 0-after-SECOND-import-PREVIEW.jpg after-SECOND-import-PREVIEW.jpg file
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Hello,
Yes, your preview looks good, next is to import the file. After import what do you see in VirtueMart product details page? Lets say we take an example product with SKU 101A-COMM-ANT-39, Can you post the screenshot of this child product in VirtueMart product details page?

Also, after your second file import you should be having a total of 917 products in your VirtueMart products page where 133 are parent products from your first import file and 784 child products are imported from your second import file. Is that correct?

The child products don't have product_name details and so they will show as "Language string missing..." but they should be having product_sku, product_in_stock as in your second import file and also they are linked to the corresponding parent product. Do you see the same?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Right.. for now (until the update of the file by the client) I change the " SECOND-PREVIEW.jpg DispWeb2.xls 1/2" with a ".5"
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hello,
So your import file has imported all the parent products. Now moving on to your second file, when you select your second file for import in CSVI, what do you see on preview page? Can you post screenshot of it?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 16
Accepted Answer Pending Moderation
I've removed the VM-G-NUMERO-2P field and imported from a cleared situation:
1st import done without the filed
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hello,
Thank you for posting template XML file. Looking at templates i understood that you are importing all parent products from your first import file and then child products from your second file. Lets start with your first import file, i see that you have added VM-G-NUMERO-2P as a template field and set VM-G-NUMERO-2P as default value too. I think that field is not needed, you can remove it. Other than that i don't see any other issue with your first import file, can you confirm that so we can move on with second one?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 18
Accepted Answer Pending Moderation
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
Hello Roberto,
We cant help you more here without looking at how your template is setup and how the import file works. Post the template XML file as explained in my previous post and let me run a test import here to check.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 20
  • Page :
  • 1
  • 2
  • 3


There are no replies made for this post yet.
Be one of the first to reply to this post!