Page 1 of 1
Pitstop Pro error messages
Posted: Mon Sep 23, 2024 10:23 am
by DJS
Hello, is it possible to remove the additional information not included in the custom message, ie "(1x on page 1)"

- Unknown.png (16.61 KiB) Viewed 11944 times
Re: Pitstop Pro error messages
Posted: Mon Sep 23, 2024 4:01 pm
by bens
Not directly I think. You could probably achieve this by using some JavaScript code (if using JSON reports) or an XPath expression (if using XML reports).
Re: Pitstop Pro error messages
Posted: Mon Sep 23, 2024 4:03 pm
by DJS
thank you
Re: Pitstop Pro error messages
Posted: Tue Sep 24, 2024 11:54 am
by tdeschampsBluewest
Hi,
You could also use
string-replace app, working on the dataset (XML, or JSON) looking to replace following regex by whitespace
Re: Pitstop Pro error messages
Posted: Tue Sep 24, 2024 12:29 pm
by DJS
Re: Pitstop Pro error messages
Posted: Tue Sep 24, 2024 4:14 pm
by loicaigon
May I suggest a more agnostic formula?
\s?\([^\)]+\)$
Hence, selecting everything between 2 parenthesis, except closing parenthesis, then closing parenthesis, at the end of the string?
There you would also extend to localised reports (to the exception of chinese/japanese probably)
Re: Pitstop Pro error messages
Posted: Tue Sep 24, 2024 4:57 pm
by DJS
thank you Loic, I shall speak to our online shop provider and give them this information and see if they can do anything server side