I want a specific part of the code to be run in loop IF a specific digital port

The code AS IT'S keep oscilating between the two parts on the code on the LCD screen.

I want it stays in loop in the market part if D8 goes HIGH.

here's the code

thank you very much!

I’m afraid that doesn’t make much sense. Read the guidelines on how to post code

@macusking, help us to help you. Please post your code in this Forum

The usual way to have a piece of code respond to a HIGH pin is

pinState = digitalRead(pin);
if (pinState == HIGH) {
   // code that should only work if pin is HIGH
}

...R