In your first loop, it looks like you are adding items to a list which are you looping over resulting in an infinite loop. You should revise your logic and remove the Add to list action inside the first loop. Have you considered list operations, such as filtering?
Hi, thanks for your answer but suddenly, I still cannot run it properly and this is the error which occurs:
Ignoring error for page Products/CurrentOrderPayment.page.xml: Loading of a page has been superseded by request for Products/CurrentOrderPayment.page.xml
Thanks one more time :)