When importing Viruemart products, I would like to use the first word of the product name as the manufacturer's value.
What should I use for this, what is the solution?
-
Anonymous User
- RO CSVI
- Wednesday, 01 October 2025
- Subscribe via email
0
Accepted Answer
Accepted Answer
Pending Moderation
Hello,
Ok, I changed the regex in rule in your template and now find and replace works. Please check.
Ok, I changed the regex in rule in your template and now find and replace works. Please check.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- 12 hours ago
- RO CSVI
- # Permalink
Accepted Answer
Pending Moderation
Hello,
What you need to do is
1. Copy product name value to manufacturer field using RO CSVI Field copy rule.
2. Create a rule using RO CSVI Multireplace and using Find and Replace operation with regular expression like in attached screenshot. This regular expression will leave the first word and replace the rest. Apply this rule on manufacturer field. This rule should run after Field copy rule so it has a value to get the first word.
Try and let me know on how it goes.
What you need to do is
1. Copy product name value to manufacturer field using RO CSVI Field copy rule.
2. Create a rule using RO CSVI Multireplace and using Find and Replace operation with regular expression like in attached screenshot. This regular expression will leave the first word and replace the rest. Apply this rule on manufacturer field. This rule should run after Field copy rule so it has a value to get the first word.
/^\s*\S+\s*(.*)/
Try and let me know on how it goes.
Attachments (1)
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Dear Tharuna,
I think I did everything according to the instructions, but it still doesn't work
I think I did everything according to the instructions, but it still doesn't work

Attachments (3)
Accepted Answer
Pending Moderation
Hello,
Login details posted do not work. It says The username and password do not match, or you do not have an account yet.
I see a problem in applying copy rule. Copy rule is applied on manufacturer_name but it should be applied on product_name field as that is where value has to be copied from. Do this change and check the import. See how that goes.
Login details posted do not work. It says The username and password do not match, or you do not have an account yet.
I see a problem in applying copy rule. Copy rule is applied on manufacturer_name but it should be applied on product_name field as that is where value has to be copied from. Do this change and check the import. See how that goes.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »