We were surprised to hear that prices were so cheap there.

Literal

Prices [subject-が] that-much cheap [quotative-と] hear we [topic-は] were-surprised.

~と聞いて…びっくりした — the quotative と marks what was heard, and ~て connects it to the surprised reaction. そんなに安い means 'so/that cheap.'