1. soura123
  2. RO CSVI
  3. Tuesday, 17 November 2020
  4.  Subscribe via email
hello
my vendor sends me a field with packing details
like this:
12/01/20
120/12
120/24
100/25
02/01/20
25

i want to use this to import on min order level and step order level
but i want a rule to keep only the last number always
any ideas please?
Accepted Answer Pending Moderation
Hello,
but i want a rule to keep only the last number always
any ideas please?

By last number you mean 25 in the given list, correct? Will the RO CSVI Skip template field won't help here? Please explain with sample import content on what is in the file and what you are trying to import.
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
Accepted Answer Pending Moderation
this values is example frm different lines of products
12/01/20
120/12
120/24
100/25
02/01/20
25

so from first line i want the 20, secont the 12,24,25,20,25
all the other import i have managed to import it, i have stuck how to rule this to only keep the last number to min order level and to step order level
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
You can use the below regex to select the last two digits from the value. There is a problem in using this regex with the current RO CSVI multi replace rule. With multi replace rule you can do find and replace of value so if you use the below regex it will find the last two digits but will do a replacement to the selected digits.

Also there is no specific pattern you have for your values so to modify the below regex to match your values. I would suggest to write a new custom rule plugin using the below regex and get the last two digits and use it in import.


\d{2}$
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. # 3
  • Page :
  • 1


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