1. andrejk
  2. RO CSVI
  3. Tuesday, 22 April 2025
  4.  Subscribe via email
Hello,
Joomla 4.4.3, VM 4.2.4

please, I import product from XML. I have in VM a parameter name : Parameter and I need to combine all values from a structure into this parameter:


<options>
<option>
<id>2948</id>
<code>2114F407</code>
<name>
<![CDATA[ biele, 220 Lumenov, USB ]]>
</name>
<ean>4712806001919</ean>
<price_msrp>25.95</price_msrp>
<price_msrp_czk>656.54</price_msrp_czk>
</option>
<option>
<id>2950</id>
<code>2114F411</code>
<name>
<![CDATA[ červené, 220 Lumenov, USB ]]>
</name>
<ean>4712806001902</ean>
<price_msrp>25.95</price_msrp>
<price_msrp_czk>656.54</price_msrp_czk>
</option>
<option>
<id>2947</id>
<code>2114F404</code>
<name>
<![CDATA[ čierne, 220 Lumenov, USB ]]>
</name>
<ean>4712806001896</ean>
<price_msrp>25.95</price_msrp>
<price_msrp_czk>656.54</price_msrp_czk>
</option>
<option>
<id>2949</id>
<code>2114F410</code>
<name>
<![CDATA[ modré, 220 Lumenov, USB ]]>
</name>
<ean>4712806001926</ean>
<price_msrp>25.95</price_msrp>
<price_msrp_czk>656.54</price_msrp_czk>
</option>
</options>


right now it's like this and it's wrong (more image in attachment):

Parameter
biele, 220 Lumenov, USB~červené, 220 Lumenov, USB~čierne, 220 Lumenov, USB~modré, 220 Lumenov, USB



Preview before import should be :

Parameter~Parameter~Parameter~Parameter
biele, 220 Lumenov, USB~červené, 220 Lumenov, USB~čierne, 220 Lumenov, USB~modré, 220 Lumenov, USB





Please how to set combine to always give custom_title value Parameter?

Best regards
Andrej
Attachments (1)
Accepted Answer Pending Moderation
Hello Andrej,
Not sure what is wrong with your rule. I created a new rule called Replace custom title and applied this on Nový SLOGER XML Import - Tharuna template and now custom_title loads fine. Can you check?
Kind regards,

Tharuna

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

I update RO CSVI but still the same result, please see attachments.

Best regards
Andrej
Attachments (1)
  1. 2 weeks ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Andrej,
Thank you for the details. I see you are using RO CSVI 8.11.1 version. Any reason for using that version? Can you update to latest RO CSVI 8.17.0 version and check the import?

Let me know If that does not help. I will take a look into your site again.
Kind regards,

Tharuna

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

I sent my login details.

Best regards
Andrej
  1. 2 weeks ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello Andrej,
Can you try with modified attached template? You can restore this template and check the import. It works for me. See attached screenshot. But if you still have problem send me Joomla administrator login details and I will take a look. You can post the details on Site Details tab under your reply.
Attachments (2)
Kind regards,

Tharuna

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

hm, the same as before, please see the attachment.
Copying from custom_value to custom_title is OK. But replacing in custom_title does not work. I have also tried another regular expression /([^~]+~)/ but nothing.

Best regards
Andrej
Attachments (2)
  1. 2 weeks ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
In the template fields change the order of custom_title and custom_value fields. Like custom_value field comes first and then custom_title after. That is because we are copying value from custom_value field so we need that coming first. Do this change and try the import.
Kind regards,

Tharuna

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

I'm making a mistake somewhere, please see attachment.

Best regards
Andrej
Attachments (4)
  1. 2 weeks ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello Andrej,
You sent only a part of XML file in your first post. I would need atleast on full product node to test import with your template. Also I see you just have a field copy plugin for copying custom_value field to custom_title in your template. You are missing combine rule for combining all options/option/name node to custom_value field. You are also missing RO CSVI Multireplace rule which is explained in my previous reply. Can you try adding these rules and check?
Kind regards,

Tharuna

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

I send XML and sample before import.

Best regards
Andre
Attachments (2)
  1. 2 weeks ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Hello Andrej,
Is there any other way to import products? Since I have one custom_title and different numbers of custom_value?

Count of custom_title and custom_value values should be the same to run the import. Since you have only one custom_title we need to make it match with custom_value field. That can be done using RO CSVI Field copy rule and RO CSVI Multi replace rule.

To do that

1. Create Field copy rule to copy the value of custom_value to custom_title. Apply this rule on custom_value field.
2. Create RO CSVI Multi replace rule to match strings between ~ in custom_title. You need to create two Find and replace operations in Multi replace rule. Apply this rule on custom_title field.

See attached screenshots on the rules.

Run import and check if it works. If not send me your template XML file and sample of import file and I will look into it. To get the template XML file from RO CSVI templates list page select the import template and click on Backup templates button. Post the downloaded XML file.
Attachments (3)
Kind regards,

Tharuna

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

yes, I'm trying to add a parameter based on the custom_value count. Is there any other way to import products? Since I have one custom_title and different numbers of custom_value?

Best regards
Andrej
  1. 2 weeks ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Hello Andrej,
You can set the custom_title value in Default value field like Parameter~Parameter~Parameter~Parameter. See attached screenshot. But if you are trying to add Parameter based on number of custom_value then that is not possible. The maximum possible Parameter value should be set in custom_title field itself.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 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!