Pitstop Pro error messages

Post Reply
User avatar
DJS
Member
Posts: 49
Joined: Wed May 01, 2024 11:27 am

Pitstop Pro error messages

Post by DJS »

Hello, is it possible to remove the additional information not included in the custom message, ie "(1x on page 1)"
Unknown.png
Unknown.png (16.61 KiB) Viewed 11941 times
bens
Advanced member
Posts: 282
Joined: Thu Mar 03, 2011 10:13 am

Re: Pitstop Pro error messages

Post 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).
User avatar
DJS
Member
Posts: 49
Joined: Wed May 01, 2024 11:27 am

Re: Pitstop Pro error messages

Post by DJS »

thank you
User avatar
tdeschampsBluewest
Member
Posts: 127
Joined: Tue Jun 01, 2021 11:57 am

Re: Pitstop Pro error messages

Post by tdeschampsBluewest »

Hi,
You could also use string-replace app, working on the dataset (XML, or JSON) looking to replace following regex by whitespace

Code: Select all

\s\(\d+x on page \d+\)=
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
User avatar
DJS
Member
Posts: 49
Joined: Wed May 01, 2024 11:27 am

Re: Pitstop Pro error messages

Post by DJS »

tdeschampsBluewest wrote: Tue Sep 24, 2024 11:54 am Hi,
You could also use string-replace app, working on the dataset (XML, or JSON) looking to replace following regex by whitespace

Code: Select all

\s\(\d+x on page \d+\)=
thank you for this
loicaigon
Advanced member
Posts: 631
Joined: Wed Jul 10, 2013 10:22 am

Re: Pitstop Pro error messages

Post 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)
Loïc Aigon
Enfocus PitStop Manager
User avatar
DJS
Member
Posts: 49
Joined: Wed May 01, 2024 11:27 am

Re: Pitstop Pro error messages

Post 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
Post Reply