1. andrejk
  2. RO CSVI
  3. Tuesday, 21 January 2025
  4.  Subscribe via email
Hello,

Joomla 4.4.10, VM 4.2.4, RO CSVI 8.11.1.

I have an XML feed for importing products into virtuemart. I need advice on how to import the <option> and <param> parts


<product>
<id>23538</id>
<code>D_B22403</code>
<name>
<![CDATA[ BEFLY bike BeFly WHIP ]]>
</name>
<manufacturer>
<![CDATA[ BEFLY ]]>
</manufacturer>
<description>
<![CDATA[ <p>Frame: 1020 Hi-ten Steel TIG welded]]>
</description>
<category>
<![CDATA[ Bicycles / BMX bikes ]]>
</category>
<price_msrp>369</price_msrp>
<images>
<url>https://www.sloger.sk/images/eshop/big/23538-befly-bicykel-befly-whip-07b7dff42c90a89ac8494b69e582c478.jpg</url>
<url>https://www.sloger.sk/images/eshop/big/23538-befly-bicykel-befly-whip-2cec9ae32f9f4cdc9ac13d77cacda42d.jpg</url>
</images>
<options>
<option>
<id>25638</id>
<code>D_B22424</code>
<name>
<![CDATA[ black ]]>
</name>
<ean>8581502242409</ean>
<price_msrp>369</price_msrp>
</option>
<option>
<id>25637</id>
<code>D_B22403</code>
<name>
<![CDATA[ salmon ]]>
</name>
<ean>8581502240306</ean>
<price_msrp>369</price_msrp>
</option>
</options>
<param>
<param_name>
<![CDATA[ Color ]]>
</param_name>
<val>
<![CDATA[ black ]]>
</val>
</param>
<param>
<param_name>
<![CDATA[ Set ]]>
</param_name>
<val>
<![CDATA[ Other ]]>
</val>
</param>

</product>
<product>

Best regards
Andrej
Accepted Answer Pending Moderation
Hello Andrej,
I need advice on how to import the <option> and <param> parts

May I know on how you want to import <option> and <param> fields? From example <option> node looks as child products. Are these child products? What about <param> node? Which field you want it to 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. # 1
Accepted Answer Pending Moderation
Hello Tharuna,

May I know how you want to import the <option> and <param> fields? From the example, the <option> node looks like child products. Are they child products? What about the <param> node? Which field do you want to import?


Sorry for the late reply - so for now we will only import the <param> part, I'm not sure how best to do it but maybe as a product property...?


Best regards
Andrej
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Andrej,
I'm not sure how best to do it but maybe as a product property...?

From the values in XML param node can be set as custom fields. Add two fields custom_title with Your field set to param/param_name and custom value with Your field set to param/val. See attached screenshot.

If you have multiple param nodes then add multiple combine field for param/param_name and multiple combine field for param/val. You can then use RO CSVI Combine rule to combine all param/param_name to custom_title field using ~ as combine character. Apply the rule on custom_title field. Create another combine rule for param/val and apply the rule on custom_value field. Run the import and check.
Attachments (1)
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
Hello, Tharuna,

custom_title and custom_value works fine, just how to combine them exactly now for XML for example:


<param>
<param_name>
<![CDATA[ Color ]]>
</param_name>
<val>
<![CDATA[ black ]]>
</val>
</param>
<param>
<param_name>
<![CDATA[ Color ]]>
</param_name>
<val>
<![CDATA[ Blue ]]>
</val>
</param>
<param>
<param_name>
<![CDATA[ Color ]]>
</param_name>
<val>
<![CDATA[ orange ]]>
</val>
</param>
<param>
<param_name>
<![CDATA[ Number of teeth ]]>
</param_name>
<val>
<![CDATA[ 25 - 32 teeth ]]>
</val>
</param>
<param>
<param_name>
<![CDATA[ Set ]]>
</param_name>
<val>
<![CDATA[ Other ]]>
</val>
</param>




And how to ensure that these values are created in virtuemart as product properties?
In the attachment we send the settings.

Best regards
Andrej
Attachments (2)
  1. 4 weeks ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello Andrej,
custom_title and custom_value works fine, just how to combine them exactly now for XML for example:

You need to use RO CSVI combine rule to combine XML nodes and apply the rules on custom_title and custom_value fields. See attached screenshots.

and how to ensure that these values are created in virtuemart as product properties?

I am not sure about your question. Are you asking on how to create these fields as custom fields first before running product import?
Attachments (3)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 4 weeks ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello Tharuna,

that's great, but what if there are more param_nam and param_val attributes (like 20 ) in the XML, some products can have one param_name and param_val and another 20?

Best regards
Andrej
  1. 4 weeks ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Andrej,
In that case you need to add maximum possible combine fields in template fields and same should be added to the rules. Say for example if maximum possible nodes are 20 then you need to add 20 combine fields for custom_title and 20 combine fields for custom_value. In the import template on File tab set Skip empty custom fields to Yes so empty values are ignored on import.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 4 weeks ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Hello Tharuna,

please, can RO CSVI create a customfield when importing if it is not in virtuemart but in XML?
and please, how to import colors, size, located at, ..... to be displayed as a combobox with the possibility of selection at the product (possible Multi Variant)?

Best regards

Andrej
  1. 4 weeks ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello Andrej,
can RO CSVI create a customfield when importing if it is not in virtuemart but in XML?

RO CSVI cannot create custom fields with VirtueMart Product import. You should use VirtueMart custom fields import, create the custom fields first and then run VirtueMart product import. You can use same import file to run VirtueMart custom fields import.

and please, how to import colors, size, located at, ..... to be displayed as a combobox with the possibility of selection at the product (possible Multi Variant)?

Please check document Importing Multi Variant custom field. Follow the example CSV format in the document to create import with your XML file.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 4 weeks ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
Hello Tharuna,

according to the instructions it can be done with one import (template), is it correct? Shouldn't I import the parents first and then the children?

Best regards
Andrej
  1. 4 weeks ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Hello Andrej,
according to the instructions it can be done with one import (template), is it correct?

Yes you can import with one template.

Shouldn't I import the parents first and then the children?

You can import parent and child together in one template but make sure that parent row is imported first and then child products rows.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 4 weeks ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Hello Tharuna,

ok, I looked at the instruction, but there are CSV fields like product_sku of child product and I don't have it in XML and I don't know how to create it to be different for each child product (child)

Best Regards
Andrej
  1. 4 weeks ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Hello Andrej,
but there are CSV fields like product_sku of child product and I don't have it in XML and I don't know how to create it to be different for each child product (child)

If you want to create a SKU using RO CSVI you can use RO CSVI Multireplace plugin and Unique ID to generate random string as product_sku on import. Let me know if that helps.
Kind regards,

Tharuna

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


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