1. spro1
  2. RO CSVI
  3. Monday, 28 November 2016
  4.  Subscribe via email
Hello!
CSVI version 6.6.4
Joomla! 3.6.4
VirtueMart 3.0.18
I need to replace some of the values during import.
in the imported file the values can be: 1500 Вт, 1700 Вт, 11500 Вт, etc.
should be replaced by: 1.5 - 2.0, 10.0 - 12.0, and so on.
I have created some rules to replace (screenshot in attachment)
Replacing numbers to 10,000 performed correctly, but if the value is greater, then an error occurs when replacing:
12500 is replaced to 11.5 - 2.0
Why is this happening, and maybe there is a way to use a regular expression for such replacements?
Accepted Answer Pending Moderation
Hello,
The issue is with the order of replacements, in your rule you need to have bigger number first and then small numbers. For example 1500 Вт, 1700 Вт, 11500 Вт, etc. should be 11500 Вт, 1700 Вт, 1500 Вт. This should solve your issue, If not please post sample of your import file to check.
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!