1. delinieict
  2. RO CSVI
  3. Tuesday, 05 June 2018
  4.  Subscribe via email
Hi,

I'm trying to import multiple categories into Hikashop from a csv file.

What I get from the .csv is this:
"CAT/CAT-SUB1|CAT/CAT-2|CAT/CAT-1"

What I would like as output is this:
product category/CAT/CAT-SUB1|product category/CAT/CAT-2|product category/CAT/CAT-1

I have created a combine rule to put the first "product category" in front using a default value, this works fine.

But then I needed to replace the "|" character with "|product category/" but this is not working when I use a normal replace rule in the same template field (category_desription) and I don't understand why :(

So any tips or inspiration is welcome!
Accepted Answer Pending Moderation
Thank you Tharuna, this works great !
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,
You should have another replace rule using regex where it finds for | and replaces with |product category/. Try the replace rule as attached screenshot and let me know if it works.

Screen Shot 2018-06-06 at 9.31.21 AM.png
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. # 2
  • Page :
  • 1


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