The Undefined index: .... in ... error in opencart says that during data submission, the values of these fields (firstname etc) were not transferred to the controller. Or transmitted not as he expects them.
Why - the mystery, covered with twilight. Usually appears after intervention in the controller / template. To say more specifically is not possible, there is little introductory.
Debazhte / accept / echo / vardampie / give, and there will be wah happiness.