1. liaskas
  2. RO CSVI
  3. Monday, 21 June 2021
  4.  Subscribe via email
Hello

We have an issue with a find and replace rule that we use to replace the product categories to the corresponding categories of our site.

This is an example of how the source xml gives the info about the product category:
<category>Αρχική>Ρούχα > Τζάκετ</category>

So... we made the find and replace rule to be like this:

Find:
Αρχική>Ρούχα > Τζάκετ|Αρχική>Μαγιό > Σουτιέν
Replace:
1325|1343

Tested like this but the applied category for each product is "0".

Then we found where the xml file is stored on our server during import and we saw that in the downloaded xml file, the info about the product category is like this.
<![CDATA[Αρχική>Ρούχα > Τζάκετ]]

So... we made the find and replace rule to be like this:

Find:
<![CDATA[Αρχική>Ρούχα > Τζάκετ]]|<![CDATA[Αρχική>Μαγιό > Σουτιέν]]
Replace:
1325|1343

Tested like this but the applied category for each product is "0".

Can you please help us on what we are missing and the categories are not replaced?

Thank you.
Attachments (1)
Accepted Answer Pending Moderation
Hello,
So... we made the find and replace rule to be like this:

Find:
<![CDATA[Αρχική>Ρούχα > Τζάκετ]]|<![CDATA[Αρχική>Μαγιό > Σουτιέν]]
Replace:
1325|1343

CDATA should not be a problem. CDATA is used for reading the text enclosed in it as regular text. So when the XML is read the value is still Αρχική>Ρούχα > Τζάκετ|Αρχική>Μαγιό > Σουτιέν. You should check the format of category in downloaded file and the category used in the rule. Check the spaces between > and see if they are same in downloaded file and in the rule.
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
  • Page :
  • 1


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