Page 1 of 1

Trouble getting Alert message to show

Posted: May 12th, 2022, 10:47 am
by CathyC
I have a button on an order history page that takes the items from the order and adds to the cart.
this has nested methods like so:

Button -> Reorder method -> UniversalCartChange method

The universalcartchage method returns a message about which items were successfully added and which were not. The Reorder method needs to put this in its output so the button can user an Alert service to show it to the user.

When I set it up to do this, the page shows the progress animation while the button is clicked, but then it goes away with no message shown.
I thought the contents of the message were the problem (single quotes, colon character, \n, other whitespace) because I could see the message in the logs but the pop up wouldnt show. But then I copied the message from the logs and put it in a hard coded CreateServiceNode instead of the dynamic value-of xsl reference and THAT worked. I'm not sure what the issue is.

I put this diagram together to illustrate it

Re: Trouble getting Alert message to show

Posted: May 19th, 2022, 12:53 pm
by JustinVanRegenmorter
Task #10461 has been created. We will update this post when it has been completed.

Re: Trouble getting Alert message to show

Posted: May 22nd, 2023, 10:27 am
by NathanL
I tested this in MVC by adding an invalid item to a list and ordering the items from that list, the invalid pricing alert now shows. This is resolved

Re: Trouble getting Alert message to show

Posted: July 24th, 2023, 11:28 am
by CathyC
Task 10461 was closed since this was resolved